home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office deutch / PROPLUS.WW / PROPLSWW.CAB / BASMLA.XSL < prev    next >
Extensible Markup Language  |  2006-01-26  |  227KB  |  5,652 lines

  1. <?xml version="1.0" ?>
  2.  
  3.  
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:b="http://schemas.microsoft.com/office/word/2004/10/bibliography" xmlns:t="http://www.microsoft.com/temp">
  5.   <xsl:output method="text" encoding="us-ascii"/>
  6.  
  7.  
  8.  
  9.   
  10.   <xsl:template match="*" mode="outputHtml2">
  11.     <xsl:apply-templates mode="outputHtml"/>
  12.   </xsl:template>
  13.  
  14.   <xsl:template name="StringFormatDot">
  15.     <xsl:param name="format" />
  16.     <xsl:param name="parameters" />
  17.  
  18.     <xsl:variable name="prop_EndChars">
  19.       <xsl:call-template name="templ_prop_EndChars"/>
  20.     </xsl:variable>
  21.  
  22.     <xsl:choose>
  23.       <xsl:when test="$format = ''"></xsl:when>
  24.       <xsl:when test="substring($format, 1, 2) = '%%'">
  25.         <xsl:text>%</xsl:text>
  26.         <xsl:call-template name="StringFormatDot">
  27.           <xsl:with-param name="format" select="substring($format, 3)" />
  28.           <xsl:with-param name="parameters" select="$parameters" />
  29.         </xsl:call-template>
  30.         <xsl:if test="string-length($format)=2">
  31.           <xsl:call-template name="templ_prop_Dot"/>
  32.         </xsl:if>
  33.       </xsl:when>
  34.       <xsl:when test="substring($format, 1, 1) = '%'">
  35.         <xsl:variable name="pos" select="substring($format, 2, 1)" />
  36.         <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  37.         <xsl:call-template name="StringFormatDot">
  38.           <xsl:with-param name="format" select="substring($format, 3)" />
  39.           <xsl:with-param name="parameters" select="$parameters" />
  40.         </xsl:call-template>
  41.         <xsl:if test="string-length($format)=2">
  42.           <xsl:variable name="temp2">
  43.             <xsl:call-template name="handleSpaces">
  44.               <xsl:with-param name="field" select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]"/>
  45.             </xsl:call-template>
  46.           </xsl:variable>
  47.           <xsl:variable name="lastChar">
  48.             <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  49.           </xsl:variable>
  50.           <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  51.             <xsl:call-template name="templ_prop_Dot"/>
  52.           </xsl:if>
  53.         </xsl:if>
  54.       </xsl:when>
  55.       <xsl:otherwise>
  56.         <xsl:value-of select="substring($format, 1, 1)" />
  57.         <xsl:call-template name="StringFormatDot">
  58.           <xsl:with-param name="format" select="substring($format, 2)" />
  59.           <xsl:with-param name="parameters" select="$parameters" />
  60.         </xsl:call-template>
  61.         <xsl:if test="string-length($format)=1">
  62.           <xsl:if test="not(contains($prop_EndChars, $format))">
  63.             <xsl:call-template name="templ_prop_Dot"/>
  64.           </xsl:if>
  65.         </xsl:if>
  66.       </xsl:otherwise>
  67.     </xsl:choose>
  68.   </xsl:template>
  69.  
  70.   <xsl:template name="StringFormat">
  71.     <xsl:param name="format" />
  72.     <xsl:param name="parameters" />
  73.     <xsl:choose>
  74.       <xsl:when test="$format = ''"></xsl:when>
  75.       <xsl:when test="substring($format, 1, 2) = '%%'">
  76.         <xsl:text>%</xsl:text>
  77.         <xsl:call-template name="StringFormat">
  78.           <xsl:with-param name="format" select="substring($format, 3)" />
  79.           <xsl:with-param name="parameters" select="$parameters" />
  80.         </xsl:call-template>
  81.       </xsl:when>
  82.       <xsl:when test="substring($format, 1, 1) = '%'">
  83.         <xsl:variable name="pos" select="substring($format, 2, 1)" />
  84.         <xsl:apply-templates select="msxsl:node-set($parameters)/t:params/t:param[position() = $pos]" mode="outputHtml2"/>
  85.         <xsl:call-template name="StringFormat">
  86.           <xsl:with-param name="format" select="substring($format, 3)" />
  87.           <xsl:with-param name="parameters" select="$parameters" />
  88.         </xsl:call-template>
  89.       </xsl:when>
  90.       <xsl:otherwise>
  91.         <xsl:value-of select="substring($format, 1, 1)" />
  92.         <xsl:call-template name="StringFormat">
  93.           <xsl:with-param name="format" select="substring($format, 2)" />
  94.           <xsl:with-param name="parameters" select="$parameters" />
  95.         </xsl:call-template>
  96.       </xsl:otherwise>
  97.     </xsl:choose>
  98.   </xsl:template>
  99.  
  100.   
  101.  
  102.   <xsl:template name="templ_str_OnlineCap" >
  103.     <xsl:text>Online</xsl:text>
  104.   </xsl:template>
  105.   <xsl:template name="templ_str_OnlineUnCap" >
  106.     <xsl:text>online</xsl:text>
  107.   </xsl:template>
  108.   <xsl:template name="templ_str_FiledCap" >
  109.     <xsl:text>Filed %1</xsl:text>
  110.   </xsl:template>
  111.   <xsl:template name="templ_str_PatentFiledCap" >
  112.     <xsl:text>Patent %1, filed %2</xsl:text>
  113.   </xsl:template>
  114.   <xsl:template name="templ_str_InCap" >
  115.     <xsl:text>In</xsl:text>
  116.   </xsl:template>
  117.   <xsl:template name="templ_str_InNameCap" >
  118.     <xsl:text>In %1</xsl:text>
  119.   </xsl:template>
  120.   <xsl:template name="templ_str_WithUnCap" >
  121.     <xsl:text>%1 with %2</xsl:text>
  122.   </xsl:template>
  123.   <xsl:template name="templ_str_VersionShortCap" >
  124.     <xsl:text>Vers.</xsl:text>
  125.   </xsl:template>
  126.   <xsl:template name="templ_str_InterviewCap" >
  127.     <xsl:text>Interview</xsl:text>
  128.   </xsl:template>
  129.   <xsl:template name="templ_str_InterviewWithCap" >
  130.     <xsl:text>Interview with %1</xsl:text>
  131.   </xsl:template>
  132.   <xsl:template name="templ_str_InterviewByCap" >
  133.     <xsl:text>Interview by %1</xsl:text>
  134.   </xsl:template>
  135.   <xsl:template name="templ_str_ByCap" >
  136.     <xsl:text>By %1</xsl:text>
  137.   </xsl:template>
  138.   <xsl:template name="templ_str_AndUnCap" >
  139.     <xsl:text>and</xsl:text>
  140.   </xsl:template>
  141.   <xsl:template name="templ_str_AndOthersUnCap" >
  142.     <xsl:text>et al.</xsl:text>
  143.   </xsl:template>
  144.   <xsl:template name="templ_str_MotionPictureCap" >
  145.     <xsl:text>Motion Picture</xsl:text>
  146.   </xsl:template>
  147.   <xsl:template name="templ_str_PatentCap" >
  148.     <xsl:text>Patent %1</xsl:text>
  149.   </xsl:template>
  150.   <xsl:template name="templ_str_EditionShortUnCap" >
  151.     <xsl:text>ed.</xsl:text>
  152.   </xsl:template>
  153.   <xsl:template name="templ_str_EditionUnCap" >
  154.     <xsl:text>edition</xsl:text>
  155.   </xsl:template>
  156.   <xsl:template name="templ_str_RetrievedFromCap" >
  157.     <xsl:text>Retrieved %1 from %2</xsl:text>
  158.   </xsl:template>
  159.   <xsl:template name="templ_str_RetrievedCap" >
  160.     <xsl:text>Retrieved %1</xsl:text>
  161.   </xsl:template>
  162.   <xsl:template name="templ_str_FromCap" >
  163.     <xsl:text>From %1</xsl:text>
  164.   </xsl:template>
  165.   <xsl:template name="templ_str_FromUnCap" >
  166.     <xsl:text>from %1</xsl:text>
  167.   </xsl:template>
  168.   <xsl:template name="templ_str_NoDateShortUnCap" >
  169.     <xsl:text>n.d.</xsl:text>
  170.   </xsl:template>
  171.   <xsl:template name="templ_str_NumberShortCap" >
  172.     <xsl:text>No. %1</xsl:text>
  173.   </xsl:template>
  174.   <xsl:template name="templ_str_NumberShortUnCap" >
  175.     <xsl:text>no. %1</xsl:text>
  176.   </xsl:template>
  177.   <xsl:template name="templ_str_PatentNumberShortCap" >
  178.     <xsl:text>Patent No. %1</xsl:text>
  179.   </xsl:template>
  180.   <xsl:template name="templ_str_PagesCountinousShort" >
  181.     <xsl:text>pp.</xsl:text>
  182.   </xsl:template>
  183.   <xsl:template name="templ_str_PageShort" >
  184.     <xsl:text>p.</xsl:text>
  185.   </xsl:template>
  186.   <xsl:template name="templ_str_SineNomineShort" >
  187.     <xsl:text>s.n.</xsl:text>
  188.   </xsl:template>
  189.   <xsl:template name="templ_str_SineLocoShort" >
  190.     <xsl:text>s.l.</xsl:text>
  191.   </xsl:template>
  192.   <xsl:template name="templ_str_SineLocoSineNomineShort" >
  193.     <xsl:text>s.l. : s.n.</xsl:text>
  194.   </xsl:template>
  195.   <xsl:template name="templ_str_VolumeShortCap" >
  196.     <xsl:text>Vol.</xsl:text>
  197.   </xsl:template>
  198.   <xsl:template name="templ_str_VolumeShortUnCap" >
  199.     <xsl:text>vol.</xsl:text>
  200.   </xsl:template>
  201.   <xsl:template name="templ_str_VolumesShortUnCap" >
  202.     <xsl:text>vols.</xsl:text>
  203.   </xsl:template>
  204.   <xsl:template name="templ_str_VolumesShortCap" >
  205.     <xsl:text>Vols.</xsl:text>
  206.   </xsl:template>
  207.   <xsl:template name="templ_str_VolumeCap" >
  208.     <xsl:text>Volume</xsl:text>
  209.   </xsl:template>
  210.   <xsl:template name="templ_str_AuthorShortUnCap" >
  211.     <xsl:text>auth.</xsl:text>
  212.   </xsl:template>
  213.   <xsl:template name="templ_str_BookAuthorShortUnCap" >
  214.     <xsl:text>book auth.</xsl:text>
  215.   </xsl:template>
  216.   <xsl:template name="templ_str_ArtistShortUnCap" >
  217.     <xsl:text>art.</xsl:text>
  218.   </xsl:template>
  219.   <xsl:template name="templ_str_ReporterShortUnCap" >
  220.     <xsl:text>rep.</xsl:text>
  221.   </xsl:template>
  222.   <xsl:template name="templ_str_WriterCap" >
  223.     <xsl:text>Writer</xsl:text>
  224.   </xsl:template>
  225.   <xsl:template name="templ_str_WritersCap" >
  226.     <xsl:text>Writers</xsl:text>
  227.   </xsl:template>
  228.   <xsl:template name="templ_str_WriterShortUnCap" >
  229.     <xsl:text>writ.</xsl:text>
  230.   </xsl:template>
  231.   <xsl:template name="templ_str_ConductedByCap" >
  232.     <xsl:text>Conducted by %1</xsl:text>
  233.   </xsl:template>
  234.   <xsl:template name="templ_str_ConductedByUnCap" >
  235.     <xsl:text>conducted by %1</xsl:text>
  236.   </xsl:template>
  237.   <xsl:template name="templ_str_ConductorCap" >
  238.     <xsl:text>Conductor</xsl:text>
  239.   </xsl:template>
  240.   <xsl:template name="templ_str_ConductorsCap" >
  241.     <xsl:text>Conductors</xsl:text>
  242.   </xsl:template>
  243.   <xsl:template name="templ_str_ConductorShortCap" >
  244.     <xsl:text>Cond.</xsl:text>
  245.   </xsl:template>
  246.   <xsl:template name="templ_str_ConductorShortUnCap" >
  247.     <xsl:text>cond.</xsl:text>
  248.   </xsl:template>
  249.   <xsl:template name="templ_str_ConductorsShortCap" >
  250.     <xsl:text>Conds.</xsl:text>
  251.   </xsl:template>
  252.   <xsl:template name="templ_str_ConductorsShortUnCap" >
  253.     <xsl:text>conds.</xsl:text>
  254.   </xsl:template>
  255.   <xsl:template name="templ_str_CounselShortUnCapIso" >
  256.     <xsl:text>consl.</xsl:text>
  257.   </xsl:template>
  258.   <xsl:template name="templ_str_CounselShortUnCap" >
  259.     <xsl:text>counsl.</xsl:text>
  260.   </xsl:template>
  261.   <xsl:template name="templ_str_DirectedByCap" >
  262.     <xsl:text>Directed by %1</xsl:text>
  263.   </xsl:template>
  264.   <xsl:template name="templ_str_DirectedByUnCap" >
  265.     <xsl:text>directed by %1</xsl:text>
  266.   </xsl:template>
  267.   <xsl:template name="templ_str_DirectorCap" >
  268.     <xsl:text>Director</xsl:text>
  269.   </xsl:template>
  270.   <xsl:template name="templ_str_DirectorsCap" >
  271.     <xsl:text>Directors</xsl:text>
  272.   </xsl:template>
  273.   <xsl:template name="templ_str_DirectorShortCap" >
  274.     <xsl:text>Dir.</xsl:text>
  275.   </xsl:template>
  276.   <xsl:template name="templ_str_DirectorShortUnCap" >
  277.     <xsl:text>dir.</xsl:text>
  278.   </xsl:template>
  279.   <xsl:template name="templ_str_DirectorsShortCap" >
  280.     <xsl:text>Dirs.</xsl:text>
  281.   </xsl:template>
  282.   <xsl:template name="templ_str_DirectorsShortUnCap" >
  283.     <xsl:text>dirs.</xsl:text>
  284.   </xsl:template>
  285.   <xsl:template name="templ_str_EditedByCap" >
  286.     <xsl:text>Edited by %1</xsl:text>
  287.   </xsl:template>
  288.   <xsl:template name="templ_str_EditedByUnCap" >
  289.     <xsl:text>edited by %1</xsl:text>
  290.   </xsl:template>
  291.   <xsl:template name="templ_str_EditorCap" >
  292.     <xsl:text>Editor</xsl:text>
  293.   </xsl:template>
  294.   <xsl:template name="templ_str_EditorsCap" >
  295.     <xsl:text>Editors</xsl:text>
  296.   </xsl:template>
  297.   <xsl:template name="templ_str_EditorShortCap" >
  298.     <xsl:text>Ed.</xsl:text>
  299.   </xsl:template>
  300.   <xsl:template name="templ_str_EditorShortUnCap" >
  301.     <xsl:text>ed.</xsl:text>
  302.   </xsl:template>
  303.   <xsl:template name="templ_str_EditorsShortCap" >
  304.     <xsl:text>Eds.</xsl:text>
  305.   </xsl:template>
  306.   <xsl:template name="templ_str_EditorsShortUnCap" >
  307.     <xsl:text>eds.</xsl:text>
  308.   </xsl:template>
  309.   <xsl:template name="templ_str_EditorShortUnCapGost" >
  310.     <xsl:text>edt.</xsl:text>
  311.   </xsl:template>
  312.   <xsl:template name="templ_str_IntervieweeShortUnCap" >
  313.     <xsl:text>interv.</xsl:text>
  314.   </xsl:template>
  315.   <xsl:template name="templ_str_InterviewerCap" >
  316.     <xsl:text>Interviewer</xsl:text>
  317.   </xsl:template>
  318.   <xsl:template name="templ_str_InterviewersCap" >
  319.     <xsl:text>Interviewers</xsl:text>
  320.   </xsl:template>
  321.   <xsl:template name="templ_str_InventorShortUnCap" >
  322.     <xsl:text>invent.</xsl:text>
  323.   </xsl:template>
  324.   <xsl:template name="templ_str_PerformedByCap" >
  325.     <xsl:text>Performed by %1</xsl:text>
  326.   </xsl:template>
  327.   <xsl:template name="templ_str_PerformedByUnCap" >
  328.     <xsl:text>performed by %1</xsl:text>
  329.   </xsl:template>
  330.   <xsl:template name="templ_str_PerformerCap" >
  331.     <xsl:text>Performer</xsl:text>
  332.   </xsl:template>
  333.   <xsl:template name="templ_str_PerformersCap" >
  334.     <xsl:text>Performers</xsl:text>
  335.   </xsl:template>
  336.   <xsl:template name="templ_str_PerformerShortCap" >
  337.     <xsl:text>Perf.</xsl:text>
  338.   </xsl:template>
  339.   <xsl:template name="templ_str_PerformerShortUnCap" >
  340.     <xsl:text>perf.</xsl:text>
  341.   </xsl:template>
  342.   <xsl:template name="templ_str_PerformersShortCap" >
  343.     <xsl:text>Perfs.</xsl:text>
  344.   </xsl:template>
  345.   <xsl:template name="templ_str_PerformersShortUnCap" >
  346.     <xsl:text>perfs.</xsl:text>
  347.   </xsl:template>
  348.   <xsl:template name="templ_str_ProducedByCap" >
  349.     <xsl:text>Produced by %1</xsl:text>
  350.   </xsl:template>
  351.   <xsl:template name="templ_str_ProducedByUnCap" >
  352.     <xsl:text>produced by %1</xsl:text>
  353.   </xsl:template>
  354.   <xsl:template name="templ_str_ProducerCap" >
  355.     <xsl:text>Producer</xsl:text>
  356.   </xsl:template>
  357.   <xsl:template name="templ_str_ProducersCap" >
  358.     <xsl:text>Producers</xsl:text>
  359.   </xsl:template>
  360.   <xsl:template name="templ_str_ProductionCompanyShortCap" >
  361.     <xsl:text>Prod.</xsl:text>
  362.   </xsl:template>
  363.   <xsl:template name="templ_str_ProducerShortCap" >
  364.     <xsl:text>Prod.</xsl:text>
  365.   </xsl:template>
  366.   <xsl:template name="templ_str_ProducersShortCap" >
  367.     <xsl:text>Prods.</xsl:text>
  368.   </xsl:template>
  369.   <xsl:template name="templ_str_ProducerShortUnCap" >
  370.     <xsl:text>prod.</xsl:text>
  371.   </xsl:template>
  372.   <xsl:template name="templ_str_TranslatedByCap" >
  373.     <xsl:text>Translated by %1</xsl:text>
  374.   </xsl:template>
  375.   <xsl:template name="templ_str_TranslatedByUnCap" >
  376.     <xsl:text>translated by %1</xsl:text>
  377.   </xsl:template>
  378.   <xsl:template name="templ_str_TranslatorCap" >
  379.     <xsl:text>Translator</xsl:text>
  380.   </xsl:template>
  381.   <xsl:template name="templ_str_TranslatorsCap" >
  382.     <xsl:text>Translators</xsl:text>
  383.   </xsl:template>
  384.   <xsl:template name="templ_str_TranslatorShortCap" >
  385.     <xsl:text>Trans.</xsl:text>
  386.   </xsl:template>
  387.   <xsl:template name="templ_str_TranslatorShortUnCap" >
  388.     <xsl:text>trans.</xsl:text>
  389.   </xsl:template>
  390.   <xsl:template name="templ_str_TranslatorsShortCap" >
  391.     <xsl:text>Trans.</xsl:text>
  392.   </xsl:template>
  393.   <xsl:template name="templ_str_TranslatorsShortUnCap" >
  394.     <xsl:text>trans.</xsl:text>
  395.   </xsl:template>
  396.   <xsl:template name="templ_str_TranslatorShortUnCapIso" >
  397.     <xsl:text>tran.</xsl:text>
  398.   </xsl:template>
  399.   <xsl:template name="templ_str_ComposerCap" >
  400.     <xsl:text>Composer</xsl:text>
  401.   </xsl:template>
  402.   <xsl:template name="templ_str_ComposersCap" >
  403.     <xsl:text>Composers</xsl:text>
  404.   </xsl:template>
  405.   <xsl:template name="templ_str_ComposerShortCap" >
  406.     <xsl:text>Comp.</xsl:text>
  407.   </xsl:template>
  408.   <xsl:template name="templ_str_ComposersShortCap" >
  409.     <xsl:text>Comps.</xsl:text>
  410.   </xsl:template>
  411.   <xsl:template name="templ_str_ComposerShortUnCapIso" >
  412.     <xsl:text>comps.</xsl:text>
  413.   </xsl:template>
  414.   <xsl:template name="templ_str_CompiledByCap" >
  415.     <xsl:text>Compiled by %1</xsl:text>
  416.   </xsl:template>
  417.   <xsl:template name="templ_str_CompiledByUnCap" >
  418.     <xsl:text>compiled by %1</xsl:text>
  419.   </xsl:template>
  420.   <xsl:template name="templ_str_CompilerCap" >
  421.     <xsl:text>Compiler</xsl:text>
  422.   </xsl:template>
  423.   <xsl:template name="templ_str_CompilersCap" >
  424.     <xsl:text>Compilers</xsl:text>
  425.   </xsl:template>
  426.   <xsl:template name="templ_str_CompilerShortCap" >
  427.     <xsl:text>Comp.</xsl:text>
  428.   </xsl:template>
  429.   <xsl:template name="templ_str_CompilerShortUnCap" >
  430.     <xsl:text>comp.</xsl:text>
  431.   </xsl:template>
  432.   <xsl:template name="templ_str_CompilersShortCap" >
  433.     <xsl:text>Comps.</xsl:text>
  434.   </xsl:template>
  435.   <xsl:template name="templ_str_CompilersShortUnCap" >
  436.     <xsl:text>comps.</xsl:text>
  437.   </xsl:template>
  438.   <xsl:template name="templ_prop_EndChars" >
  439.     <xsl:text>.!?</xsl:text>
  440.   </xsl:template>
  441.   <xsl:template name="templ_prop_NormalizeSpace" >
  442.     <xsl:text>yes</xsl:text>
  443.   </xsl:template>
  444.   <xsl:template name="templ_prop_Space" >
  445.     <xsl:text> </xsl:text>
  446.   </xsl:template>
  447.   <xsl:template name="templ_prop_NonBreakingSpace" >
  448.     <xsl:text></xsl:text>
  449.   </xsl:template>
  450.   <xsl:template name="templ_prop_ListSeparator" >
  451.     <xsl:text>, </xsl:text>
  452.   </xsl:template>
  453.   <xsl:template name="templ_prop_Dot" >
  454.     <xsl:text>.</xsl:text>
  455.   </xsl:template>
  456.   <xsl:template name="templ_prop_DotInitial" >
  457.     <xsl:text>.</xsl:text>
  458.   </xsl:template>
  459.   <xsl:template name="templ_prop_GroupSeparator" >
  460.     <xsl:text>; </xsl:text>
  461.   </xsl:template>
  462.   <xsl:template name="templ_prop_EnumSeparator" >
  463.     <xsl:text>: </xsl:text>
  464.   </xsl:template>
  465.   <xsl:template name="templ_prop_Equal" >
  466.     <xsl:text>=</xsl:text>
  467.   </xsl:template>
  468.   <xsl:template name="templ_prop_Enum" >
  469.     <xsl:text>:</xsl:text>
  470.   </xsl:template>
  471.   <xsl:template name="templ_prop_OpenQuote" >
  472.     <xsl:text>"</xsl:text>
  473.   </xsl:template>
  474.   <xsl:template name="templ_prop_CloseQuote" >
  475.     <xsl:text>"</xsl:text>
  476.   </xsl:template>
  477.   <xsl:template name="templ_prop_OpenBracket" >
  478.     <xsl:text>(</xsl:text>
  479.   </xsl:template>
  480.   <xsl:template name="templ_prop_CloseBracket" >
  481.     <xsl:text>)</xsl:text>
  482.   </xsl:template>
  483.   <xsl:template name="templ_prop_FromToDash" >
  484.     <xsl:text>-</xsl:text>
  485.   </xsl:template>
  486.   <xsl:template name="templ_prop_OpenLink" >
  487.     <xsl:text><</xsl:text>
  488.   </xsl:template>
  489.   <xsl:template name="templ_prop_CloseLink" >
  490.     <xsl:text>></xsl:text>
  491.   </xsl:template>
  492.   <xsl:template name="templ_prop_AuthorsSeparator" >
  493.     <xsl:text>, </xsl:text>
  494.   </xsl:template>
  495.   <xsl:template name="templ_prop_SimpleAuthor_F" >
  496.     <xsl:text>%F</xsl:text>
  497.   </xsl:template>
  498.   <xsl:template name="templ_prop_SimpleAuthor_M" >
  499.     <xsl:text>%M</xsl:text>
  500.   </xsl:template>
  501.   <xsl:template name="templ_prop_SimpleAuthor_L" >
  502.     <xsl:text>%L</xsl:text>
  503.   </xsl:template>
  504.   <xsl:template name="templ_prop_SimpleDate_D" >
  505.     <xsl:text>%D</xsl:text>
  506.   </xsl:template>
  507.   <xsl:template name="templ_prop_SimpleDate_M" >
  508.     <xsl:text>%M</xsl:text>
  509.   </xsl:template>
  510.   <xsl:template name="templ_prop_SimpleDate_Y" >
  511.     <xsl:text>%Y</xsl:text>
  512.   </xsl:template>
  513.   <xsl:template name="templ_prop_MLA_SameAuthor" >
  514.     <xsl:text>—</xsl:text>
  515.   </xsl:template>
  516.   <xsl:template name="templ_prop_MLA_MainAuthor_FML" >
  517.     <xsl:text>%L, %F %M</xsl:text>
  518.   </xsl:template>
  519.   <xsl:template name="templ_prop_MLA_MainAuthor_FM" >
  520.     <xsl:text>%F %M</xsl:text>
  521.   </xsl:template>
  522.   <xsl:template name="templ_prop_MLA_MainAuthor_ML" >
  523.     <xsl:text>%L, %M</xsl:text>
  524.   </xsl:template>
  525.   <xsl:template name="templ_prop_MLA_MainAuthor_FL" >
  526.     <xsl:text>%L, %F</xsl:text>
  527.   </xsl:template>
  528.   <xsl:template name="templ_prop_MLA_OtherAuthors_FML" >
  529.     <xsl:text>%F %M %L</xsl:text>
  530.   </xsl:template>
  531.   <xsl:template name="templ_prop_MLA_OtherAuthors_FM" >
  532.     <xsl:text>%F %M</xsl:text>
  533.   </xsl:template>
  534.   <xsl:template name="templ_prop_MLA_OtherAuthors_ML" >
  535.     <xsl:text>%M %L</xsl:text>
  536.   </xsl:template>
  537.   <xsl:template name="templ_prop_MLA_OtherAuthors_FL" >
  538.     <xsl:text>%L %F</xsl:text>
  539.   </xsl:template>
  540.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FML" >
  541.     <xsl:text>%F %M %L</xsl:text>
  542.   </xsl:template>
  543.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FM" >
  544.     <xsl:text>%F %M</xsl:text>
  545.   </xsl:template>
  546.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_ML" >
  547.     <xsl:text>%M %L</xsl:text>
  548.   </xsl:template>
  549.   <xsl:template name="templ_prop_MLA_SecondaryAuthors_FL" >
  550.     <xsl:text>%F %L</xsl:text>
  551.   </xsl:template>
  552.   <xsl:template name="templ_prop_MLA_Date_DMY" >
  553.     <xsl:text>%D %M %Y</xsl:text>
  554.   </xsl:template>
  555.   <xsl:template name="templ_prop_MLA_Date_DM" >
  556.     <xsl:text>%D %M</xsl:text>
  557.   </xsl:template>
  558.   <xsl:template name="templ_prop_MLA_Date_MY" >
  559.     <xsl:text>%M %Y</xsl:text>
  560.   </xsl:template>
  561.   <xsl:template name="templ_prop_MLA_Date_DY" >
  562.     <xsl:text>%D %Y</xsl:text>
  563.   </xsl:template>
  564.   <xsl:template name="templ_prop_APA_MainAuthors_FML" >
  565.     <xsl:text>%L, %f %m</xsl:text>
  566.   </xsl:template>
  567.   <xsl:template name="templ_prop_APA_MainAuthors_FM" >
  568.     <xsl:text>%f %m</xsl:text>
  569.   </xsl:template>
  570.   <xsl:template name="templ_prop_APA_MainAuthors_ML" >
  571.     <xsl:text>%L, %m</xsl:text>
  572.   </xsl:template>
  573.   <xsl:template name="templ_prop_APA_MainAuthors_FL" >
  574.     <xsl:text>%L, %f</xsl:text>
  575.   </xsl:template>
  576.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FML" >
  577.     <xsl:text>%f %m %L</xsl:text>
  578.   </xsl:template>
  579.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FM" >
  580.     <xsl:text>%f %m</xsl:text>
  581.   </xsl:template>
  582.   <xsl:template name="templ_prop_APA_SecondaryAuthors_ML" >
  583.     <xsl:text>%m %L</xsl:text>
  584.   </xsl:template>
  585.   <xsl:template name="templ_prop_APA_SecondaryAuthors_FL" >
  586.     <xsl:text>%f %L</xsl:text>
  587.   </xsl:template>
  588.   <xsl:template name="templ_prop_APA_BeforeLastAuthor" >
  589.     <xsl:text>&</xsl:text>
  590.   </xsl:template>
  591.   <xsl:template name="templ_prop_APA_GeneralOpen" >
  592.     <xsl:text>(</xsl:text>
  593.   </xsl:template>
  594.   <xsl:template name="templ_prop_APA_GeneralClose" >
  595.     <xsl:text>)</xsl:text>
  596.   </xsl:template>
  597.   <xsl:template name="templ_prop_APA_SecondaryOpen" >
  598.     <xsl:text>[</xsl:text>
  599.   </xsl:template>
  600.   <xsl:template name="templ_prop_APA_SecondaryClose" >
  601.     <xsl:text>]</xsl:text>
  602.   </xsl:template>
  603.   <xsl:template name="templ_prop_Hyphens" >
  604.     <xsl:text>‐-­‑‒–—―</xsl:text>
  605.   </xsl:template>
  606.   <xsl:template name="templ_prop_APA_Date_DMY" >
  607.     <xsl:text>%Y, %M %D</xsl:text>
  608.   </xsl:template>
  609.   <xsl:template name="templ_prop_APA_Date_DM" >
  610.     <xsl:text>%M %D</xsl:text>
  611.   </xsl:template>
  612.   <xsl:template name="templ_prop_APA_Date_MY" >
  613.     <xsl:text>%Y, %M</xsl:text>
  614.   </xsl:template>
  615.   <xsl:template name="templ_prop_APA_Date_DY" >
  616.     <xsl:text>%Y, %D</xsl:text>
  617.   </xsl:template>
  618.   <xsl:template name="templ_prop_APA_DateAccessed_DMY" >
  619.     <xsl:text>%M %D, %Y</xsl:text>
  620.   </xsl:template>
  621.   <xsl:template name="templ_prop_APA_DateAccessed_DM" >
  622.     <xsl:text>%M %D</xsl:text>
  623.   </xsl:template>
  624.   <xsl:template name="templ_prop_APA_DateAccessed_MY" >
  625.     <xsl:text>%M, %Y</xsl:text>
  626.   </xsl:template>
  627.   <xsl:template name="templ_prop_APA_DateAccessed_DY" >
  628.     <xsl:text>%D, %Y</xsl:text>
  629.   </xsl:template>
  630.   <xsl:template name="templ_prop_APA_DateCourt_DMY" >
  631.     <xsl:text>%M %D, %Y</xsl:text>
  632.   </xsl:template>
  633.   <xsl:template name="templ_prop_APA_DateCourt_DM" >
  634.     <xsl:text>%M %D</xsl:text>
  635.   </xsl:template>
  636.   <xsl:template name="templ_prop_APA_DateCourt_MY" >
  637.     <xsl:text>%M, %Y</xsl:text>
  638.   </xsl:template>
  639.   <xsl:template name="templ_prop_APA_DateCourt_DY" >
  640.     <xsl:text>%D, %Y</xsl:text>
  641.   </xsl:template>
  642.   <xsl:template name="templ_prop_Chicago_SameAuthor" >
  643.     <xsl:text>—</xsl:text>
  644.   </xsl:template>
  645.   <xsl:template name="templ_prop_Chicago_MainAuthor_FML" >
  646.     <xsl:text>%L, %F %M</xsl:text>
  647.   </xsl:template>
  648.   <xsl:template name="templ_prop_Chicago_MainAuthor_FM" >
  649.     <xsl:text>%F %M</xsl:text>
  650.   </xsl:template>
  651.   <xsl:template name="templ_prop_Chicago_MainAuthor_ML" >
  652.     <xsl:text>%L, %M</xsl:text>
  653.   </xsl:template>
  654.   <xsl:template name="templ_prop_Chicago_MainAuthor_FL" >
  655.     <xsl:text>%L, %F</xsl:text>
  656.   </xsl:template>
  657.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FML" >
  658.     <xsl:text>%F %M %L</xsl:text>
  659.   </xsl:template>
  660.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FM" >
  661.     <xsl:text>%F %M</xsl:text>
  662.   </xsl:template>
  663.   <xsl:template name="templ_prop_Chicago_OtherAuthors_ML" >
  664.     <xsl:text>%M %L</xsl:text>
  665.   </xsl:template>
  666.   <xsl:template name="templ_prop_Chicago_OtherAuthors_FL" >
  667.     <xsl:text>%F %L</xsl:text>
  668.   </xsl:template>
  669.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FML" >
  670.     <xsl:text>%F %M %L</xsl:text>
  671.   </xsl:template>
  672.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FM" >
  673.     <xsl:text>%F %M</xsl:text>
  674.   </xsl:template>
  675.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_ML" >
  676.     <xsl:text>%M %L</xsl:text>
  677.   </xsl:template>
  678.   <xsl:template name="templ_prop_Chicago_SecondaryAuthors_FL" >
  679.     <xsl:text>%F %L</xsl:text>
  680.   </xsl:template>
  681.   <xsl:template name="templ_prop_Chicago_Date_DMY" >
  682.     <xsl:text>%D %M %Y</xsl:text>
  683.   </xsl:template>
  684.   <xsl:template name="templ_prop_Chicago_Date_DM" >
  685.     <xsl:text>%D %M</xsl:text>
  686.   </xsl:template>
  687.   <xsl:template name="templ_prop_Chicago_Date_MY" >
  688.     <xsl:text>%M %Y</xsl:text>
  689.   </xsl:template>
  690.   <xsl:template name="templ_prop_Chicago_Date_DY" >
  691.     <xsl:text>%D %Y</xsl:text>
  692.   </xsl:template>
  693.   <xsl:template name="templ_prop_ISO690_MainAuthors_FML" >
  694.     <xsl:text>%L, %F %M</xsl:text>
  695.   </xsl:template>
  696.   <xsl:template name="templ_prop_ISO690_MainAuthors_FM" >
  697.     <xsl:text>%F %M</xsl:text>
  698.   </xsl:template>
  699.   <xsl:template name="templ_prop_ISO690_MainAuthors_ML" >
  700.     <xsl:text>%L, %M</xsl:text>
  701.   </xsl:template>
  702.   <xsl:template name="templ_prop_ISO690_MainAuthors_FL" >
  703.     <xsl:text>%L, %F</xsl:text>
  704.   </xsl:template>
  705.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FML" >
  706.     <xsl:text>%F %M %L</xsl:text>
  707.   </xsl:template>
  708.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FM" >
  709.     <xsl:text>%F %M</xsl:text>
  710.   </xsl:template>
  711.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_ML" >
  712.     <xsl:text>%M %L</xsl:text>
  713.   </xsl:template>
  714.   <xsl:template name="templ_prop_ISO690_SecondaryAuthors_FL" >
  715.     <xsl:text>%F %L</xsl:text>
  716.   </xsl:template>
  717.   <xsl:template name="templ_prop_ISO690_SameAuthor" >
  718.     <xsl:text>—</xsl:text>
  719.   </xsl:template>
  720.   <xsl:template name="templ_prop_ISO690_GeneralOpen" >
  721.     <xsl:text>[</xsl:text>
  722.   </xsl:template>
  723.   <xsl:template name="templ_prop_ISO690_GeneralClose" >
  724.     <xsl:text>]</xsl:text>
  725.   </xsl:template>
  726.   <xsl:template name="templ_prop_ISO690_Date_DMY" >
  727.     <xsl:text>%D %M %Y</xsl:text>
  728.   </xsl:template>
  729.   <xsl:template name="templ_prop_ISO690_Date_DM" >
  730.     <xsl:text>%D %M</xsl:text>
  731.   </xsl:template>
  732.   <xsl:template name="templ_prop_ISO690_Date_MY" >
  733.     <xsl:text>%M %Y</xsl:text>
  734.   </xsl:template>
  735.   <xsl:template name="templ_prop_ISO690_Date_DY" >
  736.     <xsl:text>%D %Y</xsl:text>
  737.   </xsl:template>
  738.   <xsl:template name="templ_prop_ISO690_DateAccessed_DMY" >
  739.     <xsl:text>%M %D %Y</xsl:text>
  740.   </xsl:template>
  741.   <xsl:template name="templ_prop_ISO690_DateAccessed_DM" >
  742.     <xsl:text>%M %D</xsl:text>
  743.   </xsl:template>
  744.   <xsl:template name="templ_prop_ISO690_DateAccessed_MY" >
  745.     <xsl:text>%M %Y</xsl:text>
  746.   </xsl:template>
  747.   <xsl:template name="templ_prop_ISO690_DateAccessed_DY" >
  748.     <xsl:text>%D %Y</xsl:text>
  749.   </xsl:template>
  750.   <xsl:template name="templ_prop_Gost_Authors_FML" >
  751.     <xsl:text>%L %F %M</xsl:text>
  752.   </xsl:template>
  753.   <xsl:template name="templ_prop_Gost_Authors_FM" >
  754.     <xsl:text>%F %M</xsl:text>
  755.   </xsl:template>
  756.   <xsl:template name="templ_prop_Gost_Authors_ML" >
  757.     <xsl:text>%L %M</xsl:text>
  758.   </xsl:template>
  759.   <xsl:template name="templ_prop_Gost_Authors_FL" >
  760.     <xsl:text>%L %F</xsl:text>
  761.   </xsl:template>
  762.   <xsl:template name="templ_prop_Gost_Date_DMY" >
  763.     <xsl:text>%D %M %Y</xsl:text>
  764.   </xsl:template>
  765.   <xsl:template name="templ_prop_Gost_Date_DM" >
  766.     <xsl:text>%D %M</xsl:text>
  767.   </xsl:template>
  768.   <xsl:template name="templ_prop_Gost_Date_MY" >
  769.     <xsl:text>%M %Y</xsl:text>
  770.   </xsl:template>
  771.   <xsl:template name="templ_prop_Gost_Date_DY" >
  772.     <xsl:text>%D %Y</xsl:text>
  773.   </xsl:template>
  774.   <xsl:template name="templ_prop_Gost_GeneralOpen" >
  775.     <xsl:text>[</xsl:text>
  776.   </xsl:template>
  777.   <xsl:template name="templ_prop_Gost_GeneralClose" >
  778.     <xsl:text>]</xsl:text>
  779.   </xsl:template>
  780.   <xsl:template name="templ_prop_Gost_OneSlash" >
  781.     <xsl:text>/</xsl:text>
  782.   </xsl:template>
  783.   <xsl:template name="templ_prop_Gost_TwoSlash" >
  784.     <xsl:text>//</xsl:text>
  785.   </xsl:template>
  786.   <xsl:template name="templ_prop_SIST_MainAuthors_FML" >
  787.     <xsl:text>%L, %F %M</xsl:text>
  788.   </xsl:template>
  789.   <xsl:template name="templ_prop_SIST_MainAuthors_FM" >
  790.     <xsl:text>%F %M</xsl:text>
  791.   </xsl:template>
  792.   <xsl:template name="templ_prop_SIST_MainAuthors_ML" >
  793.     <xsl:text>%L, %M</xsl:text>
  794.   </xsl:template>
  795.   <xsl:template name="templ_prop_SIST_MainAuthors_FL" >
  796.     <xsl:text>%L, %F</xsl:text>
  797.   </xsl:template>
  798.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FML" >
  799.     <xsl:text>%F %M %L</xsl:text>
  800.   </xsl:template>
  801.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FM" >
  802.     <xsl:text>%F %M</xsl:text>
  803.   </xsl:template>
  804.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_ML" >
  805.     <xsl:text>%M %L</xsl:text>
  806.   </xsl:template>
  807.   <xsl:template name="templ_prop_SIST_SecondaryAuthors_FL" >
  808.     <xsl:text>%F %L</xsl:text>
  809.   </xsl:template>
  810.   <xsl:template name="templ_prop_SIST_SameAuthor" >
  811.     <xsl:text>—</xsl:text>
  812.   </xsl:template>
  813.   <xsl:template name="templ_prop_SIST_GeneralOpen" >
  814.     <xsl:text>[</xsl:text>
  815.   </xsl:template>
  816.   <xsl:template name="templ_prop_SIST_GeneralClose" >
  817.     <xsl:text>]</xsl:text>
  818.   </xsl:template>
  819.   <xsl:template name="templ_prop_SIST_Date_DMY" >
  820.     <xsl:text>%D %M %Y</xsl:text>
  821.   </xsl:template>
  822.   <xsl:template name="templ_prop_SIST_Date_DM" >
  823.     <xsl:text>%D %M</xsl:text>
  824.   </xsl:template>
  825.   <xsl:template name="templ_prop_SIST_Date_MY" >
  826.     <xsl:text>%M %Y</xsl:text>
  827.   </xsl:template>
  828.   <xsl:template name="templ_prop_SIST_Date_DY" >
  829.     <xsl:text>%D %Y</xsl:text>
  830.   </xsl:template>
  831.   <xsl:template name="templ_prop_SIST_DateAccessed_DMY" >
  832.     <xsl:text>%M %D %Y</xsl:text>
  833.   </xsl:template>
  834.   <xsl:template name="templ_prop_SIST_DateAccessed_DM" >
  835.     <xsl:text>%M %D</xsl:text>
  836.   </xsl:template>
  837.   <xsl:template name="templ_prop_SIST_DateAccessed_MY" >
  838.     <xsl:text>%M %Y</xsl:text>
  839.   </xsl:template>
  840.   <xsl:template name="templ_prop_SIST_DateAccessed_DY" >
  841.     <xsl:text>%D %Y</xsl:text>
  842.   </xsl:template>
  843.  
  844.   
  845.  
  846.   
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.   
  858.  
  859.   <xsl:template match="/">
  860.  
  861.  
  862.     <xsl:choose>
  863.       
  864.       
  865.       <xsl:when test="b:Version">
  866.         <xsl:text>2005.12.07</xsl:text>
  867.       </xsl:when>
  868.       <xsl:when test="b:OfficeStyleKey">
  869.         <xsl:text>MLA</xsl:text>
  870.       </xsl:when>
  871.  
  872.       
  873.       
  874.  
  875.       
  876.  
  877.       <xsl:when test="b:GetImportantFields">
  878.         <b:ImportantFields>
  879.           <xsl:choose>
  880.             <xsl:when test="b:GetImportantFields/b:SourceType='Book'">
  881.               <b:ImportantField>
  882.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  883.               </b:ImportantField>
  884.               <b:ImportantField>
  885.                 <xsl:text>b:Title</xsl:text>
  886.               </b:ImportantField>
  887.               <b:ImportantField>
  888.                 <xsl:text>b:Year</xsl:text>
  889.               </b:ImportantField>
  890.               <b:ImportantField>
  891.                 <xsl:text>b:City</xsl:text>
  892.               </b:ImportantField>
  893.               <b:ImportantField>
  894.                 <xsl:text>b:Publisher</xsl:text>
  895.               </b:ImportantField>
  896.             </xsl:when>
  897.  
  898.             <xsl:when test="b:GetImportantFields/b:SourceType='BookSection'">
  899.               <b:ImportantField>
  900.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  901.               </b:ImportantField>
  902.               <b:ImportantField>
  903.                 <xsl:text>b:Title</xsl:text>
  904.               </b:ImportantField>
  905.               <b:ImportantField>
  906.                 <xsl:text>b:Author/b:BookAuthor/b:NameList</xsl:text>
  907.               </b:ImportantField>
  908.               <b:ImportantField>
  909.                 <xsl:text>b:BookTitle</xsl:text>
  910.               </b:ImportantField>
  911.               <b:ImportantField>
  912.                 <xsl:text>b:Year</xsl:text>
  913.               </b:ImportantField>
  914.               <b:ImportantField>
  915.                 <xsl:text>b:Pages</xsl:text>
  916.               </b:ImportantField>
  917.               <b:ImportantField>
  918.                 <xsl:text>b:City</xsl:text>
  919.               </b:ImportantField>
  920.               <b:ImportantField>
  921.                 <xsl:text>b:Publisher</xsl:text>
  922.               </b:ImportantField>
  923.             </xsl:when>
  924.  
  925.             <xsl:when test="b:GetImportantFields/b:SourceType='JournalArticle'">
  926.               <b:ImportantField>
  927.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  928.               </b:ImportantField>
  929.               <b:ImportantField>
  930.                 <xsl:text>b:Title</xsl:text>
  931.               </b:ImportantField>
  932.               <b:ImportantField>
  933.                 <xsl:text>b:JournalName</xsl:text>
  934.               </b:ImportantField>
  935.               <b:ImportantField>
  936.                 <xsl:text>b:Year</xsl:text>
  937.               </b:ImportantField>
  938.               <b:ImportantField>
  939.                 <xsl:text>b:Pages</xsl:text>
  940.               </b:ImportantField>
  941.             </xsl:when>
  942.  
  943.             <xsl:when test="b:GetImportantFields/b:SourceType='ArticleInAPeriodical'">
  944.               <b:ImportantField>
  945.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  946.               </b:ImportantField>
  947.               <b:ImportantField>
  948.                 <xsl:text>b:Title</xsl:text>
  949.               </b:ImportantField>
  950.               <b:ImportantField>
  951.                 <xsl:text>b:PeriodicalTitle</xsl:text>
  952.               </b:ImportantField>
  953.               <b:ImportantField>
  954.                 <xsl:text>b:Month</xsl:text>
  955.               </b:ImportantField>
  956.               <b:ImportantField>
  957.                 <xsl:text>b:Day</xsl:text>
  958.               </b:ImportantField>
  959.               <b:ImportantField>
  960.                 <xsl:text>b:Year</xsl:text>
  961.               </b:ImportantField>
  962.               <b:ImportantField>
  963.                 <xsl:text>b:Pages</xsl:text>
  964.               </b:ImportantField>
  965.             </xsl:when>
  966.  
  967.             <xsl:when test="b:GetImportantFields/b:SourceType='ConferenceProceedings'">
  968.               <b:ImportantField>
  969.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  970.               </b:ImportantField>
  971.               <b:ImportantField>
  972.                 <xsl:text>b:Title</xsl:text>
  973.               </b:ImportantField>
  974.               <b:ImportantField>
  975.                 <xsl:text>b:Pages</xsl:text>
  976.               </b:ImportantField>
  977.               <b:ImportantField>
  978.                 <xsl:text>b:Year</xsl:text>
  979.               </b:ImportantField>
  980.               <b:ImportantField>
  981.                 <xsl:text>b:ConferenceName</xsl:text>
  982.               </b:ImportantField>
  983.               <b:ImportantField>
  984.                 <xsl:text>b:City</xsl:text>
  985.               </b:ImportantField>
  986.               <b:ImportantField>
  987.                 <xsl:text>b:Publisher</xsl:text>
  988.               </b:ImportantField>
  989.             </xsl:when>
  990.  
  991.             <xsl:when test="b:GetImportantFields/b:SourceType='Report'">
  992.               <b:ImportantField>
  993.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  994.               </b:ImportantField>
  995.               <b:ImportantField>
  996.                 <xsl:text>b:Title</xsl:text>
  997.               </b:ImportantField>
  998.               <b:ImportantField>
  999.                 <xsl:text>b:Year</xsl:text>
  1000.               </b:ImportantField>
  1001.               <b:ImportantField>
  1002.                 <xsl:text>b:Publisher</xsl:text>
  1003.               </b:ImportantField>
  1004.               <b:ImportantField>
  1005.                 <xsl:text>b:City</xsl:text>
  1006.               </b:ImportantField>
  1007.               <b:ImportantField>
  1008.                 <xsl:text>b:ThesisType</xsl:text>
  1009.               </b:ImportantField>
  1010.             </xsl:when>
  1011.  
  1012.             <xsl:when test="b:GetImportantFields/b:SourceType='SoundRecording'">
  1013.               <b:ImportantField>
  1014.                 <xsl:text>b:Author/b:Composer/b:NameList</xsl:text>
  1015.               </b:ImportantField>
  1016.               <b:ImportantField>
  1017.                 <xsl:text>b:Author/b:Conductor/b:NameList</xsl:text>
  1018.               </b:ImportantField>
  1019.               <b:ImportantField>
  1020.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  1021.               </b:ImportantField>
  1022.               <b:ImportantField>
  1023.                 <xsl:text>b:Title</xsl:text>
  1024.               </b:ImportantField>
  1025.               <b:ImportantField>
  1026.                 <xsl:text>b:AlbumTitle</xsl:text>
  1027.               </b:ImportantField>
  1028.               <b:ImportantField>
  1029.                 <xsl:text>b:Year</xsl:text>
  1030.               </b:ImportantField>
  1031.               <b:ImportantField>
  1032.                 <xsl:text>b:City</xsl:text>
  1033.               </b:ImportantField>
  1034.             </xsl:when>
  1035.  
  1036.             <xsl:when test="b:GetImportantFields/b:SourceType='Performance'">
  1037.               <b:ImportantField>
  1038.                 <xsl:text>b:Title</xsl:text>
  1039.               </b:ImportantField>
  1040.               <b:ImportantField>
  1041.                 <xsl:text>b:Author/b:Writer/b:NameList</xsl:text>
  1042.               </b:ImportantField>
  1043.               <b:ImportantField>
  1044.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  1045.               </b:ImportantField>
  1046.               <b:ImportantField>
  1047.                 <xsl:text>b:Theater</xsl:text>
  1048.               </b:ImportantField>
  1049.               <b:ImportantField>
  1050.                 <xsl:text>b:City</xsl:text>
  1051.               </b:ImportantField>
  1052.               <b:ImportantField>
  1053.                 <xsl:text>b:Month</xsl:text>
  1054.               </b:ImportantField>
  1055.               <b:ImportantField>
  1056.                 <xsl:text>b:Day</xsl:text>
  1057.               </b:ImportantField>
  1058.               <b:ImportantField>
  1059.                 <xsl:text>b:Year</xsl:text>
  1060.               </b:ImportantField>
  1061.             </xsl:when>
  1062.  
  1063.             <xsl:when test="b:GetImportantFields/b:SourceType='Art'">
  1064.               <b:ImportantField>
  1065.                 <xsl:text>b:Author/b:Artist/b:NameList</xsl:text>
  1066.               </b:ImportantField>
  1067.               <b:ImportantField>
  1068.                 <xsl:text>b:Title</xsl:text>
  1069.               </b:ImportantField>
  1070.               <b:ImportantField>
  1071.                 <xsl:text>b:Institution</xsl:text>
  1072.               </b:ImportantField>
  1073.               <b:ImportantField>
  1074.                 <xsl:text>b:PublicationTitle</xsl:text>
  1075.               </b:ImportantField>
  1076.               <b:ImportantField>
  1077.                 <xsl:text>b:City</xsl:text>
  1078.               </b:ImportantField>
  1079.               <b:ImportantField>
  1080.                 <xsl:text>b:Year</xsl:text>
  1081.               </b:ImportantField>
  1082.             </xsl:when>
  1083.  
  1084.             <xsl:when test="b:GetImportantFields/b:SourceType='DocumentFromInternetSite'">
  1085.               <b:ImportantField>
  1086.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  1087.               </b:ImportantField>
  1088.               <b:ImportantField>
  1089.                 <xsl:text>b:Title</xsl:text>
  1090.               </b:ImportantField>
  1091.               <b:ImportantField>
  1092.                 <xsl:text>b:InternetSiteTitle</xsl:text>
  1093.               </b:ImportantField>
  1094.               <b:ImportantField>
  1095.                 <xsl:text>b:Month</xsl:text>
  1096.               </b:ImportantField>
  1097.               <b:ImportantField>
  1098.                 <xsl:text>b:Day</xsl:text>
  1099.               </b:ImportantField>
  1100.               <b:ImportantField>
  1101.                 <xsl:text>b:Year</xsl:text>
  1102.               </b:ImportantField>
  1103.               <b:ImportantField>
  1104.                 <xsl:text>b:MonthAccessed</xsl:text>
  1105.               </b:ImportantField>
  1106.               <b:ImportantField>
  1107.                 <xsl:text>b:DayAccessed</xsl:text>
  1108.               </b:ImportantField>
  1109.               <b:ImportantField>
  1110.                 <xsl:text>b:YearAccessed</xsl:text>
  1111.               </b:ImportantField>
  1112.               <b:ImportantField>
  1113.                 <xsl:text>b:URL</xsl:text>
  1114.               </b:ImportantField>
  1115.             </xsl:when>
  1116.  
  1117.             <xsl:when test="b:GetImportantFields/b:SourceType='InternetSite'">
  1118.               <b:ImportantField>
  1119.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  1120.               </b:ImportantField>
  1121.               <b:ImportantField>
  1122.                 <xsl:text>b:Title</xsl:text>
  1123.               </b:ImportantField>
  1124.               <b:ImportantField>
  1125.                 <xsl:text>b:Month</xsl:text>
  1126.               </b:ImportantField>
  1127.               <b:ImportantField>
  1128.                 <xsl:text>b:Day</xsl:text>
  1129.               </b:ImportantField>
  1130.               <b:ImportantField>
  1131.                 <xsl:text>b:Year</xsl:text>
  1132.               </b:ImportantField>
  1133.               <b:ImportantField>
  1134.                 <xsl:text>b:MonthAccessed</xsl:text>
  1135.               </b:ImportantField>
  1136.               <b:ImportantField>
  1137.                 <xsl:text>b:DayAccessed</xsl:text>
  1138.               </b:ImportantField>
  1139.               <b:ImportantField>
  1140.                 <xsl:text>b:YearAccessed</xsl:text>
  1141.               </b:ImportantField>
  1142.               <b:ImportantField>
  1143.                 <xsl:text>b:URL</xsl:text>
  1144.               </b:ImportantField>
  1145.             </xsl:when>
  1146.  
  1147.             <xsl:when test="b:GetImportantFields/b:SourceType='Film'">
  1148.               <b:ImportantField>
  1149.                 <xsl:text>b:Title</xsl:text>
  1150.               </b:ImportantField>
  1151.               <b:ImportantField>
  1152.                 <xsl:text>b:Author/b:Performer/b:NameList</xsl:text>
  1153.               </b:ImportantField>
  1154.               <b:ImportantField>
  1155.                 <xsl:text>b:Author/b:Director/b:NameList</xsl:text>
  1156.               </b:ImportantField>
  1157.               <b:ImportantField>
  1158.                 <xsl:text>b:Year</xsl:text>
  1159.               </b:ImportantField>
  1160.             </xsl:when>
  1161.  
  1162.             <xsl:when test="b:GetImportantFields/b:SourceType='Interview'">
  1163.               <b:ImportantField>
  1164.                 <xsl:text>b:Author/b:Interviewee/b:NameList</xsl:text>
  1165.               </b:ImportantField>
  1166.               <b:ImportantField>
  1167.                 <xsl:text>b:Title</xsl:text>
  1168.               </b:ImportantField>
  1169.               <b:ImportantField>
  1170.                 <xsl:text>b:Author/b:Interviewer/b:NameList</xsl:text>
  1171.               </b:ImportantField>
  1172.               <b:ImportantField>
  1173.                 <xsl:text>b:Month</xsl:text>
  1174.               </b:ImportantField>
  1175.               <b:ImportantField>
  1176.                 <xsl:text>b:Day</xsl:text>
  1177.               </b:ImportantField>
  1178.               <b:ImportantField>
  1179.                 <xsl:text>b:Year</xsl:text>
  1180.               </b:ImportantField>
  1181.             </xsl:when>
  1182.  
  1183.             <xsl:when test="b:GetImportantFields/b:SourceType='Patent'">
  1184.               <b:ImportantField>
  1185.                 <xsl:text>b:Author/b:Inventor/b:NameList</xsl:text>
  1186.               </b:ImportantField>
  1187.               <b:ImportantField>
  1188.                 <xsl:text>b:Title</xsl:text>
  1189.               </b:ImportantField>
  1190.               <b:ImportantField>
  1191.                 <xsl:text>b:Month</xsl:text>
  1192.               </b:ImportantField>
  1193.               <b:ImportantField>
  1194.                 <xsl:text>b:Day</xsl:text>
  1195.               </b:ImportantField>
  1196.               <b:ImportantField>
  1197.                 <xsl:text>b:Year</xsl:text>
  1198.               </b:ImportantField>
  1199.               <b:ImportantField>
  1200.                 <xsl:text>b:CountryRegion</xsl:text>
  1201.               </b:ImportantField>
  1202.               <b:ImportantField>
  1203.                 <xsl:text>b:PatentNumber</xsl:text>
  1204.               </b:ImportantField>
  1205.             </xsl:when>
  1206.  
  1207.             <xsl:when test="b:GetImportantFields/b:SourceType='ElectronicSource'">
  1208.               <b:ImportantField>
  1209.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  1210.               </b:ImportantField>
  1211.               <b:ImportantField>
  1212.                 <xsl:text>b:Title</xsl:text>
  1213.               </b:ImportantField>
  1214.               <b:ImportantField>
  1215.                 <xsl:text>b:City</xsl:text>
  1216.               </b:ImportantField>
  1217.               <b:ImportantField>
  1218.                 <xsl:text>b:Month</xsl:text>
  1219.               </b:ImportantField>
  1220.               <b:ImportantField>
  1221.                 <xsl:text>b:Day</xsl:text>
  1222.               </b:ImportantField>
  1223.               <b:ImportantField>
  1224.                 <xsl:text>b:Year</xsl:text>
  1225.               </b:ImportantField>
  1226.             </xsl:when>
  1227.  
  1228.             <xsl:when test="b:GetImportantFields/b:SourceType='Case'">
  1229.               <b:ImportantField>
  1230.                 <xsl:text>b:Title</xsl:text>
  1231.               </b:ImportantField>
  1232.               <b:ImportantField>
  1233.                 <xsl:text>b:CaseNumber</xsl:text>
  1234.               </b:ImportantField>
  1235.               <b:ImportantField>
  1236.                 <xsl:text>b:Court</xsl:text>
  1237.               </b:ImportantField>
  1238.               <b:ImportantField>
  1239.                 <xsl:text>b:Month</xsl:text>
  1240.               </b:ImportantField>
  1241.               <b:ImportantField>
  1242.                 <xsl:text>b:Day</xsl:text>
  1243.               </b:ImportantField>
  1244.               <b:ImportantField>
  1245.                 <xsl:text>b:Year</xsl:text>
  1246.               </b:ImportantField>
  1247.             </xsl:when>
  1248.  
  1249.             <xsl:when test="b:GetImportantFields/b:SourceType='Misc'">
  1250.               <b:ImportantField>
  1251.                 <xsl:text>b:Author/b:Author/b:NameList</xsl:text>
  1252.               </b:ImportantField>
  1253.               <b:ImportantField>
  1254.                 <xsl:text>b:Title</xsl:text>
  1255.               </b:ImportantField>
  1256.               <b:ImportantField>
  1257.                 <xsl:text>b:PublicationTitle</xsl:text>
  1258.               </b:ImportantField>
  1259.               <b:ImportantField>
  1260.                 <xsl:text>b:Month</xsl:text>
  1261.               </b:ImportantField>
  1262.               <b:ImportantField>
  1263.                 <xsl:text>b:Day</xsl:text>
  1264.               </b:ImportantField>
  1265.               <b:ImportantField>
  1266.                 <xsl:text>b:Year</xsl:text>
  1267.               </b:ImportantField>
  1268.               <b:ImportantField>
  1269.                 <xsl:text>b:City</xsl:text>
  1270.               </b:ImportantField>
  1271.               <b:ImportantField>
  1272.                 <xsl:text>b:Publisher</xsl:text>
  1273.               </b:ImportantField>
  1274.             </xsl:when>
  1275.  
  1276.           </xsl:choose>
  1277.         </b:ImportantFields>
  1278.       </xsl:when>
  1279.  
  1280.       <xsl:when test="b:Citation">
  1281.  
  1282.         <xsl:variable name="ListPopulatedWithMain">
  1283.           <xsl:call-template name="populateMain">
  1284.             <xsl:with-param name="Type">b:Citation</xsl:with-param>
  1285.           </xsl:call-template>
  1286.         </xsl:variable>
  1287.  
  1288.  
  1289.  
  1290.         <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
  1291.           <head>
  1292.           </head>
  1293.           <body>
  1294.             <xsl:element name="p">
  1295.               <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:FirstAuthor">
  1296.                 <xsl:call-template name="templ_prop_OpenBracket"/>
  1297.               </xsl:if>
  1298.  
  1299.               <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:PagePrefix">
  1300.                 <xsl:value-of select="/b:Citation/b:PagePrefix"/>
  1301.               </xsl:if>
  1302.  
  1303.               <xsl:variable name="type">
  1304.                 <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:SourceType"/>
  1305.               </xsl:variable>
  1306.  
  1307.               <xsl:variable name="showTitle">
  1308.                 <xsl:if test="not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoTitle) and (string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)>0 or string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title)>0)">
  1309.                   <xsl:text>yes</xsl:text>
  1310.                 </xsl:if>
  1311.               </xsl:variable>
  1312.  
  1313.  
  1314.               <xsl:variable name="authorMain">
  1315.                 <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main"/>
  1316.               </xsl:variable>
  1317.  
  1318.               <xsl:variable name="displayedAuthor">
  1319.                 <xsl:if test="string-length($authorMain)>0">
  1320.                   <xsl:text>yes</xsl:text>
  1321.                 </xsl:if>
  1322.               </xsl:variable>
  1323.  
  1324.               <xsl:variable name="title">
  1325.                 <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)=0">
  1326.                   <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title"/>
  1327.                 </xsl:if>
  1328.                 <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)>0">
  1329.                   <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle"/>
  1330.                 </xsl:if>
  1331.               </xsl:variable>
  1332.  
  1333.  
  1334.               <xsl:if test="string-length($title)=0 and string-length($authorMain)=0 and string-length(b:Year)=0">
  1335.                 <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Tag"/>
  1336.               </xsl:if>
  1337.  
  1338.  
  1339.               <xsl:choose>
  1340.                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoAuthor or $displayedAuthor!='yes'">
  1341.                   <xsl:choose>
  1342.                     <xsl:when test="string-length($showTitle)>0 and ($type='DocumentFromInternetSite' or $type='InternetSite' or $type='ElectronicSource')">
  1343.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  1344.                       <xsl:value-of select="$title"/>
  1345.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  1346.                     </xsl:when>
  1347.                     <xsl:when test="string-length($showTitle)>0 and ($type='Book' or $type='BookSection' or $type='JournalArticle' or $type='ArticleInAPeriodical' or $type='ConferenceProceedings' or $type='Report')">
  1348.                       <i>
  1349.                         <xsl:value-of select="$title"/>
  1350.                       </i>
  1351.                     </xsl:when>
  1352.                     <xsl:when test="string-length($showTitle)>0">
  1353.                       <xsl:value-of select="$title"/>
  1354.                     </xsl:when>
  1355.                   </xsl:choose>
  1356.                 </xsl:when>
  1357.  
  1358.                 <xsl:otherwise>
  1359.  
  1360.  
  1361.  
  1362.                   <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueMiddle">
  1363.  
  1364.                     <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:First)>0">
  1365.                       <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:First"/>
  1366.                       <xsl:call-template name="templ_prop_Space"/>
  1367.                     </xsl:if>
  1368.                   </xsl:if>
  1369.  
  1370.                   <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName">
  1371.                     <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Middle)>0">
  1372.                       <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Middle"/>
  1373.                       <xsl:call-template name="templ_prop_Space"/>
  1374.                     </xsl:if>
  1375.                   </xsl:if>
  1376.  
  1377.                   <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Last)>0">
  1378.                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Last"/>
  1379.                   </xsl:if>
  1380.  
  1381.                   <xsl:choose>
  1382.                     <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[3]/b:Last)>0">
  1383.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  1384.                       <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[2]/b:Last"/>
  1385.                       <xsl:call-template name="templ_prop_Space"/>
  1386.                       <xsl:call-template name="templ_str_AndUnCap"/>
  1387.                       <xsl:call-template name="templ_prop_Space"/>
  1388.                       <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[3]/b:Last"/>
  1389.                     </xsl:when>
  1390.                     <xsl:when test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[2]/b:Last)>0">
  1391.                       <xsl:call-template name="templ_prop_Space"/>
  1392.                       <xsl:call-template name="templ_str_AndUnCap"/>
  1393.                       <xsl:call-template name="templ_prop_Space"/>
  1394.                       <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[2]/b:Last"/>
  1395.                     </xsl:when>
  1396.                   </xsl:choose>
  1397.  
  1398.                   <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:DoAndOther">
  1399.                     <xsl:call-template name="templ_prop_Space"/>
  1400.                     <xsl:call-template name="templ_str_AndOthersUnCap"/>
  1401.                   </xsl:if>
  1402.  
  1403.                   <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:RepeatedAuthor and (string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)>0 or (string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title)>0 and not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NoTitle)))">
  1404.                     <xsl:if test="string-length($showTitle) and string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Last)>0">
  1405.                       <xsl:call-template name="templ_prop_ListSeparator"/>
  1406.                     </xsl:if>
  1407.                     <xsl:choose>
  1408.                       <xsl:when test="string-length($showTitle)>0 and ($type='DocumentFromInternetSite' or $type='InternetSite' or $type='ElectronicSource')">
  1409.                         <xsl:call-template name="templ_prop_OpenQuote"/>
  1410.                         <xsl:value-of select="$title"/>
  1411.                         <xsl:call-template name="templ_prop_CloseQuote"/>
  1412.                       </xsl:when>
  1413.                       <xsl:when test="string-length($showTitle)>0 and ($type='Book' or $type='BookSection' or $type='JournalArticle' or $type='ArticleInAPeriodical' or $type='ConferenceProceedings' or $type='Report')">
  1414.                         <i>
  1415.                           <xsl:value-of select="$title"/>
  1416.                         </i>
  1417.                       </xsl:when>
  1418.                       <xsl:when test="string-length($showTitle)>0">
  1419.                         <xsl:value-of select="$title"/>
  1420.                       </xsl:when>
  1421.                     </xsl:choose>
  1422.                   </xsl:if>
  1423.  
  1424.  
  1425.                   <xsl:if test="not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueMiddle) or string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:First)=0">
  1426.  
  1427.  
  1428.  
  1429.                     <xsl:if test="not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:NonUniqueLastName) or string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Middle)=0">
  1430.  
  1431.                       <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[1]/b:Last)=0">
  1432.  
  1433.                         <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[3]/b:Last)=0">
  1434.                           <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Author/b:Main/b:NameList/b:Person[2]/b:Last)=0">
  1435.  
  1436.                             <xsl:if test="not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:DoAndOther)">
  1437.  
  1438.                               <xsl:if test="string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:ShortTitle)=0 and string-length(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Title)=0 ">
  1439.  
  1440.                                 <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Source/b:Tag"/>
  1441.  
  1442.                               </xsl:if>
  1443.  
  1444.                             </xsl:if>
  1445.                           </xsl:if>
  1446.  
  1447.                         </xsl:if>
  1448.  
  1449.                       </xsl:if>
  1450.                     </xsl:if>
  1451.                   </xsl:if>
  1452.  
  1453.  
  1454.  
  1455.                 </xsl:otherwise>
  1456.               </xsl:choose>
  1457.  
  1458.  
  1459.  
  1460.               <xsl:choose>
  1461.                 <xsl:when test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Pages">
  1462.                   <xsl:if test="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Volume">
  1463.                     <xsl:call-template name="templ_prop_Space"/>
  1464.                     <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Volume"/>
  1465.                     <xsl:call-template name="templ_prop_EnumSeparator"/>
  1466.                   </xsl:if>
  1467.                   <xsl:if test="not(msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Volume)">
  1468.                     <xsl:call-template name="templ_prop_Space"/>
  1469.                   </xsl:if>
  1470.                   <xsl:value-of select="msxsl:node-set($ListPopulatedWithMain)/b:Citation/b:Pages"/>
  1471.                 </xsl:when>
  1472.                 <xsl:otherwise>
  1473.                   <xsl:if test="/b:Citation/b:Volume">
  1474.                     <xsl:call-template name="templ_prop_ListSeparator"/>
  1475.                     <xsl:call-template name="templ_str_VolumeShortUnCap"/>
  1476.                     <xsl:call-template name="templ_prop_Space"/>
  1477.                     <xsl:value-of select="/b:Citation/b:Volume"/>
  1478.                   </xsl:if>
  1479.                 </xsl:otherwise>
  1480.               </xsl:choose>
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.               <xsl:if test="/b:Citation/b:PageSuffix">
  1490.                 <xsl:value-of select="/b:Citation/b:PageSuffix"/>
  1491.               </xsl:if>
  1492.  
  1493.               <xsl:if test="/b:Citation/b:LastAuthor">
  1494.                 <xsl:call-template name="templ_prop_CloseBracket"/>
  1495.               </xsl:if>
  1496.               <xsl:if test="not(/b:Citation/b:LastAuthor)">
  1497.                 <xsl:call-template name="templ_prop_GroupSeparator"/>
  1498.               </xsl:if>
  1499.  
  1500.  
  1501.             </xsl:element>
  1502.           </body>
  1503.         </html>
  1504.       </xsl:when>
  1505.       <xsl:when test="b:Bibliography">
  1506.  
  1507.  
  1508.         
  1509.  
  1510.         <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
  1511.           <head>
  1512.             
  1513.           </head>
  1514.           <body>
  1515.  
  1516.             
  1517.  
  1518.             <xsl:variable name="ListPopulatedWithMain">
  1519.               <xsl:call-template name="populateMain">
  1520.                 <xsl:with-param name="Type">b:Bibliography</xsl:with-param>
  1521.               </xsl:call-template>
  1522.             </xsl:variable>
  1523.  
  1524.             
  1525.             
  1526.             <xsl:variable name="sList">
  1527.               <xsl:call-template name="sortedList">
  1528.                 <xsl:with-param name="sourceRoot">
  1529.                   <xsl:copy-of select="$ListPopulatedWithMain"/>
  1530.                 </xsl:with-param>
  1531.               </xsl:call-template>
  1532.             </xsl:variable>
  1533.  
  1534.             
  1535.  
  1536.             <xsl:variable name="dups">
  1537.               <xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">
  1538.                 <b:author>
  1539.                   <xsl:call-template name="formatMain"/>
  1540.                 </b:author>
  1541.               </xsl:for-each>
  1542.             </xsl:variable>
  1543.  
  1544.             <xsl:for-each select="msxsl:node-set($sList)/b:Bibliography/b:Source">
  1545.               <xsl:element name="p">
  1546.                 <xsl:attribute name="class">
  1547.                   <xsl:value-of select="'Bibliography'"/>
  1548.                 </xsl:attribute>
  1549.                 <xsl:attribute name="style">
  1550.                   <xsl:value-of select="'margin-left:.5in;text-indent:-.5in'"/>
  1551.                 </xsl:attribute>
  1552.  
  1553.  
  1554.                 
  1555.  
  1556.                 
  1557.  
  1558.                 
  1559.  
  1560.                 <xsl:variable name="cEditors">
  1561.                   <xsl:value-of select="count(b:Author/b:Editor/b:NameList/b:Person)"/>
  1562.                 </xsl:variable>
  1563.  
  1564.                 <xsl:variable name="cTranslators">
  1565.                   <xsl:value-of select="count(b:Author/b:Translator/b:NameList/b:Person)"/>
  1566.                 </xsl:variable>
  1567.  
  1568.                 <xsl:variable name="cComposers">
  1569.                   <xsl:value-of select="count(b:Author/b:Composer/b:NameList/b:Person)"/>
  1570.                 </xsl:variable>
  1571.  
  1572.                 <xsl:variable name="cCompilers">
  1573.                   <xsl:value-of select="count(b:Author/b:Compiler/b:NameList/b:Person)"/>
  1574.                 </xsl:variable>
  1575.  
  1576.                 <xsl:variable name="cPerformers">
  1577.                   <xsl:value-of select="count(b:Author/b:Performer/b:NameList/b:Person)"/>
  1578.                 </xsl:variable>
  1579.  
  1580.                 <xsl:variable name="cDirectors">
  1581.                   <xsl:value-of select="count(b:Author/b:Director/b:NameList/b:Person)"/>
  1582.                 </xsl:variable>
  1583.  
  1584.                 <xsl:variable name="cProducers">
  1585.                   <xsl:value-of select="count(b:Author/b:ProducerName/b:NameList/b:Person)"/>
  1586.                 </xsl:variable>
  1587.  
  1588.                 <xsl:variable name="cConductors">
  1589.                   <xsl:value-of select="count(b:Author/b:Conductor/b:NameList/b:Person)"/>
  1590.                 </xsl:variable>
  1591.  
  1592.                 
  1593.  
  1594.                 
  1595.  
  1596.                 <xsl:variable name="actIndex" select="position()"/>
  1597.                 <xsl:variable name="lastIndex" select="position() - 1"/>
  1598.  
  1599.                 <xsl:variable name="actAuthor">
  1600.                   <xsl:value-of select="msxsl:node-set($dups)/b:author[$actIndex]"/>
  1601.                 </xsl:variable>
  1602.  
  1603.                 <xsl:variable name="lastAuthor">
  1604.                   <xsl:value-of select="msxsl:node-set($dups)/b:author[$lastIndex]"/>
  1605.                 </xsl:variable>
  1606.  
  1607.                 <xsl:variable name="author">
  1608.                   <xsl:choose>
  1609.                     <xsl:when test="position()=1">
  1610.                       <xsl:call-template name="formatAuthor"/>
  1611.                     </xsl:when>
  1612.                     <xsl:when test="$actAuthor=$lastAuthor and string-length($actAuthor)>0 ">
  1613.                       <xsl:call-template name="templ_prop_MLA_SameAuthor"/>
  1614.                     </xsl:when>
  1615.                     <xsl:otherwise>
  1616.                       <xsl:call-template name="formatAuthor"/>
  1617.                     </xsl:otherwise>
  1618.                   </xsl:choose>
  1619.                 </xsl:variable>
  1620.  
  1621.                 
  1622.  
  1623.  
  1624.                 <xsl:variable name="compiler">
  1625.                   <xsl:call-template name="formatCompiler"/>
  1626.                 </xsl:variable>
  1627.  
  1628.                 <xsl:variable name="compilerLF">
  1629.                   <xsl:call-template name="formatCompilerLF"/>
  1630.                 </xsl:variable>
  1631.  
  1632.                 <xsl:variable name="editor">
  1633.                   <xsl:call-template name="formatEditor"/>
  1634.                 </xsl:variable>
  1635.  
  1636.                 <xsl:variable name="editorLF">
  1637.                   <xsl:call-template name="formatEditorLF"/>
  1638.                 </xsl:variable>
  1639.  
  1640.                 <xsl:variable name="translator">
  1641.                   <xsl:call-template name="formatTranslator"/>
  1642.                 </xsl:variable>
  1643.  
  1644.                 <xsl:variable name="translatorLF">
  1645.                   <xsl:call-template name="formatTranslatorLF"/>
  1646.                 </xsl:variable>
  1647.  
  1648.                 <xsl:variable name="performer">
  1649.                   <xsl:call-template name="formatPerformer"/>
  1650.                 </xsl:variable>
  1651.  
  1652.                 <xsl:variable name="intervieweeLF">
  1653.                   <xsl:call-template name="formatIntervieweeLF"/>
  1654.                 </xsl:variable>
  1655.  
  1656.                 <xsl:variable name="producerName">
  1657.                   <xsl:call-template name="formatProducerName"/>
  1658.                 </xsl:variable>
  1659.  
  1660.                 <xsl:variable name="interviewer">
  1661.                   <xsl:call-template name="formatInterviewer"/>
  1662.                 </xsl:variable>
  1663.  
  1664.                 <xsl:variable name="interviewerLF">
  1665.                   <xsl:call-template name="formatInterviewerLF"/>
  1666.                 </xsl:variable>
  1667.  
  1668.                 <xsl:variable name="writer">
  1669.                   <xsl:call-template name="formatWriter"/>
  1670.                 </xsl:variable>
  1671.  
  1672.                 <xsl:variable name="director">
  1673.                   <xsl:call-template name="formatDirector"/>
  1674.                 </xsl:variable>
  1675.  
  1676.                 <xsl:variable name="inventorLF">
  1677.                   <xsl:call-template name="formatInventorLF"/>
  1678.                 </xsl:variable>
  1679.  
  1680.                 <xsl:variable name="bookAuthor">
  1681.                   <xsl:call-template name="formatBookAuthor"/>
  1682.                 </xsl:variable>
  1683.  
  1684.                 <xsl:variable name="sectionAuthor">
  1685.                   <xsl:call-template name="formatAuthor"/>
  1686.                 </xsl:variable>
  1687.  
  1688.                 <xsl:variable name="performerLF">
  1689.                   <xsl:call-template name="formatPerformerLF"/>
  1690.                 </xsl:variable>
  1691.  
  1692.                 <xsl:variable name="conductorLF">
  1693.                   <xsl:call-template name="formatConductorLF"/>
  1694.                 </xsl:variable>
  1695.  
  1696.                 <xsl:variable name="conductor">
  1697.                   <xsl:call-template name="formatConductor"/>
  1698.                 </xsl:variable>
  1699.  
  1700.                 <xsl:variable name="composerLF">
  1701.                   <xsl:call-template name="formatComposerLF"/>
  1702.                 </xsl:variable>
  1703.  
  1704.                 <xsl:variable name="composer">
  1705.                   <xsl:call-template name="formatComposer"/>
  1706.                 </xsl:variable>
  1707.  
  1708.                 <xsl:variable name="artist">
  1709.                   <xsl:call-template name="formatArtistLF"/>
  1710.                 </xsl:variable>
  1711.  
  1712.  
  1713.  
  1714.                 
  1715.  
  1716.                 <xsl:variable name="date">
  1717.                   <xsl:call-template name="formatDate"/>
  1718.                 </xsl:variable>
  1719.  
  1720.                 <xsl:variable name="dateDot">
  1721.                   <xsl:call-template name="appendField_Dot">
  1722.                     <xsl:with-param name="field" select="$date"/>
  1723.                   </xsl:call-template>
  1724.                 </xsl:variable>
  1725.  
  1726.                 <xsl:variable name="dateAccessed">
  1727.                   <xsl:call-template name="formatDateAccessed"/>
  1728.                 </xsl:variable>
  1729.  
  1730.                 <xsl:variable name="dateAccessedDot">
  1731.                   <xsl:call-template name="appendField_Dot">
  1732.                     <xsl:with-param name="field" select="$dateAccessed"/>
  1733.                   </xsl:call-template>
  1734.                 </xsl:variable>
  1735.  
  1736.                 <xsl:variable name="tempCPcY">
  1737.                   <xsl:call-template name="templateCPcY"/>
  1738.                 </xsl:variable>
  1739.  
  1740.                 <xsl:variable name="tempCPY">
  1741.                   <xsl:call-template name="templateCPY"/>
  1742.                 </xsl:variable>
  1743.  
  1744.                 <xsl:variable name="tempIYP">
  1745.                   <xsl:call-template name="templateIYP"/>
  1746.                 </xsl:variable>
  1747.  
  1748.                 <xsl:variable name="tempVYP">
  1749.                   <xsl:call-template name="templateVYP"/>
  1750.                 </xsl:variable>
  1751.  
  1752.                 <xsl:variable name="tempDEP">
  1753.                   <xsl:call-template name="templateDEP"/>
  1754.                 </xsl:variable>
  1755.  
  1756.                 <xsl:variable name="tempTC">
  1757.                   <xsl:call-template name="templateTC"/>
  1758.                 </xsl:variable>
  1759.  
  1760.                 <xsl:variable name="tempIC">
  1761.                   <xsl:call-template name="templateIC"/>
  1762.                 </xsl:variable>
  1763.  
  1764.                 <xsl:variable name="tempIY">
  1765.                   <xsl:call-template name="templateIY"/>
  1766.                 </xsl:variable>
  1767.  
  1768.                 <xsl:variable name="tempDY">
  1769.                   <xsl:call-template name="templateDY"/>
  1770.                 </xsl:variable>
  1771.  
  1772.                 <xsl:variable name="tempCPD">
  1773.                   <xsl:call-template name="templateCPD"/>
  1774.                 </xsl:variable>
  1775.  
  1776.                 <xsl:variable name="tempSC">
  1777.                   <xsl:call-template name="templateSC"/>
  1778.                 </xsl:variable>
  1779.  
  1780.                 <xsl:variable name="tempCP">
  1781.                   <xsl:call-template name="templateCP"/>
  1782.                 </xsl:variable>
  1783.  
  1784.                 <xsl:variable name="tempCD">
  1785.                   <xsl:call-template name="templateCD"/>
  1786.                 </xsl:variable>
  1787.  
  1788.                 <xsl:variable name="tempVIYP">
  1789.                   <xsl:call-template name="templateVIYP"/>
  1790.                 </xsl:variable>
  1791.  
  1792.                 <xsl:variable name="tempDaU">
  1793.                   <xsl:variable name="temporaryDaU">
  1794.  
  1795.                     <xsl:value-of select="$dateAccessed"/>
  1796.  
  1797.                     <xsl:if test="string-length(dateAccessedDot)>0 and string-length(b:URL)>0">
  1798.                       <xsl:call-template name="templ_prop_Space"/>
  1799.                     </xsl:if>
  1800.  
  1801.                     <xsl:if test="string-length(b:URL)>0">
  1802.                       <xsl:call-template name="templ_prop_OpenLink"/>
  1803.                       <xsl:value-of select="b:URL"/>
  1804.                       <xsl:call-template name="templ_prop_CloseLink"/>
  1805.                     </xsl:if>
  1806.                   </xsl:variable>
  1807.  
  1808.                   <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  1809.                     <xsl:with-param name="field" select="$temporaryDaU"/>
  1810.                   </xsl:call-template>
  1811.                 </xsl:variable>
  1812.  
  1813.  
  1814.  
  1815.                 
  1816.  
  1817.  
  1818.  
  1819.                 <xsl:variable name="titleDot">
  1820.                   <xsl:call-template name="appendField_Dot">
  1821.                     <xsl:with-param name="field" select="b:Title"/>
  1822.                   </xsl:call-template>
  1823.                 </xsl:variable>
  1824.  
  1825.                 <xsl:variable name="albumTitleDot">
  1826.                   <xsl:call-template name="appendField_Dot">
  1827.                     <xsl:with-param name="field" select="b:AlbumTitle"/>
  1828.                   </xsl:call-template>
  1829.                 </xsl:variable>
  1830.  
  1831.                 <xsl:variable name="pagesDot">
  1832.                   <xsl:call-template name="appendField_Dot">
  1833.                     <xsl:with-param name="field" select="b:Pages"/>
  1834.                   </xsl:call-template>
  1835.                 </xsl:variable>
  1836.  
  1837.                 <xsl:variable name="bookTitleDot">
  1838.                   <xsl:call-template name="appendField_Dot">
  1839.                     <xsl:with-param name="field" select="b:BookTitle"/>
  1840.                   </xsl:call-template>
  1841.                 </xsl:variable>
  1842.  
  1843.                 <xsl:variable name="conferenceNameDot">
  1844.                   <xsl:call-template name="appendField_Dot">
  1845.                     <xsl:with-param name="field" select="b:ConferenceName"/>
  1846.                   </xsl:call-template>
  1847.                 </xsl:variable>
  1848.  
  1849.                 <xsl:variable name="broadcasterDot">
  1850.                   <xsl:call-template name="appendField_Dot">
  1851.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  1852.                   </xsl:call-template>
  1853.                 </xsl:variable>
  1854.  
  1855.                 <xsl:variable name="interviewTitle">
  1856.                   <xsl:call-template name="handleSpaces">
  1857.                     <xsl:with-param name="field" select="b:Title"/>
  1858.                   </xsl:call-template>
  1859.                 </xsl:variable>
  1860.  
  1861.                 <xsl:variable name="interviewTitleDot">
  1862.                   <xsl:call-template name="appendField_Dot">
  1863.                     <xsl:with-param name="field" select="b:Title"/>
  1864.                   </xsl:call-template>
  1865.                 </xsl:variable>
  1866.  
  1867.                 <xsl:variable name="publicationTitle">
  1868.                   <xsl:call-template name="handleSpaces">
  1869.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  1870.                   </xsl:call-template>
  1871.                 </xsl:variable>
  1872.  
  1873.                 <xsl:variable name="publicationTitleDot">
  1874.                   <xsl:call-template name="appendField_Dot">
  1875.                     <xsl:with-param name="field" select="b:PublicationTitle"/>
  1876.                   </xsl:call-template>
  1877.                 </xsl:variable>
  1878.  
  1879.                 <xsl:variable name="URL">
  1880.                   <xsl:value-of select="b:URL"/>
  1881.                 </xsl:variable>
  1882.  
  1883.                 <xsl:variable name="cityDot">
  1884.                   <xsl:call-template name="appendField_Dot">
  1885.                     <xsl:with-param name="field" select="b:City"/>
  1886.                   </xsl:call-template>
  1887.                 </xsl:variable>
  1888.  
  1889.                 <xsl:variable name="institutionDot">
  1890.                   <xsl:call-template name="appendField_Dot">
  1891.                     <xsl:with-param name="field" select="b:Institution"/>
  1892.                   </xsl:call-template>
  1893.                 </xsl:variable>
  1894.  
  1895.                 <xsl:variable name="courtDot">
  1896.                   <xsl:call-template name="appendField_Dot">
  1897.                     <xsl:with-param name="field" select="b:Court"/>
  1898.                   </xsl:call-template>
  1899.                 </xsl:variable>
  1900.  
  1901.                 <xsl:variable name="thesisTypeDot">
  1902.                   <xsl:call-template name="appendField_Dot">
  1903.                     <xsl:with-param name="field" select="b:ThesisType"/>
  1904.                   </xsl:call-template>
  1905.                 </xsl:variable>
  1906.  
  1907.                 <xsl:variable name="journalNameDot">
  1908.                   <xsl:call-template name="appendField_Dot">
  1909.                     <xsl:with-param name="field" select="b:JournalName"/>
  1910.                   </xsl:call-template>
  1911.                 </xsl:variable>
  1912.  
  1913.                 <xsl:variable name="journalName">
  1914.                   <xsl:call-template name="handleSpaces">
  1915.                     <xsl:with-param name="field" select="b:JournalName"/>
  1916.                   </xsl:call-template>
  1917.                 </xsl:variable>
  1918.  
  1919.                 <xsl:variable name="internetSiteTitleDot">
  1920.                   <xsl:call-template name="appendField_Dot">
  1921.                     <xsl:with-param name="field" select="b:InternetSiteTitle"/>
  1922.                   </xsl:call-template>
  1923.                 </xsl:variable>
  1924.  
  1925.                 <xsl:variable name="mediumDot">
  1926.                   <xsl:call-template name="appendField_Dot">
  1927.                     <xsl:with-param name="field" select="b:Medium"/>
  1928.                   </xsl:call-template>
  1929.                 </xsl:variable>
  1930.  
  1931.                 <xsl:variable name="issueDot">
  1932.                   <xsl:call-template name="appendField_Dot">
  1933.                     <xsl:with-param name="field" select="b:Issue"/>
  1934.                   </xsl:call-template>
  1935.                 </xsl:variable>
  1936.  
  1937.                 <xsl:variable name="productionCompanyDot">
  1938.                   <xsl:call-template name="appendField_Dot">
  1939.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  1940.                   </xsl:call-template>
  1941.                 </xsl:variable>
  1942.  
  1943.                 <xsl:variable name="editionDot">
  1944.                   <xsl:call-template name="appendField_Dot">
  1945.                     <xsl:with-param name="field" select="b:Edition"/>
  1946.                   </xsl:call-template>
  1947.                 </xsl:variable>
  1948.  
  1949.                 <xsl:variable name="broadcastTitle">
  1950.                   <xsl:call-template name="handleSpaces">
  1951.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  1952.                   </xsl:call-template>
  1953.                 </xsl:variable>
  1954.  
  1955.                 <xsl:variable name="versionDot">
  1956.                   <xsl:call-template name="appendField_Dot">
  1957.                     <xsl:with-param name="field" select="b:Version"/>
  1958.                   </xsl:call-template>
  1959.                 </xsl:variable>
  1960.  
  1961.                 <xsl:variable name="broadcastTitleDot">
  1962.                   <xsl:call-template name="appendField_Dot">
  1963.                     <xsl:with-param name="field" select="b:BroadcastTitle"/>
  1964.                   </xsl:call-template>
  1965.                 </xsl:variable>
  1966.  
  1967.                 <xsl:variable name="periodicalTitleDot">
  1968.                   <xsl:call-template name="appendField_Dot">
  1969.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  1970.                   </xsl:call-template>
  1971.                 </xsl:variable>
  1972.  
  1973.                 <xsl:variable name="periodicalTitle">
  1974.                   <xsl:call-template name="handleSpaces">
  1975.                     <xsl:with-param name="field" select="b:PeriodicalTitle"/>
  1976.                   </xsl:call-template>
  1977.                 </xsl:variable>
  1978.  
  1979.                 <xsl:variable name="productionCompany">
  1980.                   <xsl:call-template name="handleSpaces">
  1981.                     <xsl:with-param name="field" select="b:ProductionCompany"/>
  1982.                   </xsl:call-template>
  1983.                 </xsl:variable>
  1984.  
  1985.                 <xsl:variable name="caseNumber">
  1986.                   <xsl:call-template name="handleSpaces">
  1987.                     <xsl:with-param name="field" select="b:CaseNumber"/>
  1988.                   </xsl:call-template>
  1989.                 </xsl:variable>
  1990.  
  1991.                 <xsl:variable name="broadcaster">
  1992.                   <xsl:call-template name="handleSpaces">
  1993.                     <xsl:with-param name="field" select="b:Broadcaster"/>
  1994.                   </xsl:call-template>
  1995.                 </xsl:variable>
  1996.  
  1997.                 <xsl:variable name="volume">
  1998.                   <xsl:call-template name="handleSpaces">
  1999.                     <xsl:with-param name="field" select="b:Volume"/>
  2000.                   </xsl:call-template>
  2001.                 </xsl:variable>
  2002.  
  2003.  
  2004.                 
  2005.  
  2006.                 <xsl:variable name="prefixVersionDot">
  2007.                   <xsl:if test="string-length($versionDot)>0">
  2008.                     <xsl:call-template name="templ_str_VersionShortCap"/>
  2009.                     <xsl:call-template name="templ_prop_Space"/>
  2010.                     <xsl:value-of select="$versionDot"/>
  2011.                   </xsl:if>
  2012.                 </xsl:variable>
  2013.  
  2014.                 <xsl:variable name="prefixEditorDot">
  2015.                   <xsl:if test="string-length($editor)>0">
  2016.                     <xsl:if test="$cEditors > 1">
  2017.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  2018.                     </xsl:if>
  2019.                     <xsl:if test="$cEditors = 1">
  2020.                       <xsl:call-template name="templ_str_EditorShortCap"/>
  2021.                     </xsl:if>
  2022.                     <xsl:call-template name="templ_prop_Space"/>
  2023.                     <xsl:call-template name="appendField_Dot">
  2024.                       <xsl:with-param name="field" select="$editor"/>
  2025.                     </xsl:call-template>
  2026.                   </xsl:if>
  2027.                 </xsl:variable>
  2028.  
  2029.                 <xsl:variable name="prefixTranslatorDot">
  2030.                   <xsl:if test="string-length($translator)>0">
  2031.                     <xsl:if test="$cTranslators > 1">
  2032.                       <xsl:call-template name="templ_str_TranslatorsShortCap"/>
  2033.                     </xsl:if>
  2034.                     <xsl:if test="$cTranslators = 1">
  2035.                       <xsl:call-template name="templ_str_TranslatorShortCap"/>
  2036.                     </xsl:if>
  2037.                     <xsl:call-template name="templ_prop_Space"/>
  2038.                     <xsl:call-template name="appendField_Dot">
  2039.                       <xsl:with-param name="field" select="$translator"/>
  2040.                     </xsl:call-template>
  2041.                   </xsl:if>
  2042.                 </xsl:variable>
  2043.  
  2044.  
  2045.  
  2046.                 <xsl:variable name="prefixDirectorDot">
  2047.                   <xsl:if test="string-length($director)>0">
  2048.                     <xsl:if test="$cDirectors > 1">
  2049.                       <xsl:call-template name="templ_str_DirectorsShortCap"/>
  2050.                     </xsl:if>
  2051.                     <xsl:if test="$cDirectors = 1">
  2052.                       <xsl:call-template name="templ_str_DirectorShortCap"/>
  2053.                     </xsl:if>
  2054.                     <xsl:call-template name="templ_prop_Space"/>
  2055.                     <xsl:call-template name="appendField_Dot">
  2056.                       <xsl:with-param name="field" select="$director"/>
  2057.                     </xsl:call-template>
  2058.                   </xsl:if>
  2059.                 </xsl:variable>
  2060.  
  2061.                 <xsl:variable name="prefixPerformerDot">
  2062.                   <xsl:if test="string-length($performer)>0">
  2063.                     <xsl:if test="$cPerformers > 1">
  2064.                       <xsl:call-template name="templ_str_PerformerShortCap"/>
  2065.                     </xsl:if>
  2066.                     <xsl:if test="$cPerformers = 1">
  2067.                       <xsl:call-template name="templ_str_PerformerShortCap"/>
  2068.                     </xsl:if>
  2069.                     <xsl:call-template name="templ_prop_Space"/>
  2070.                     <xsl:call-template name="appendField_Dot">
  2071.                       <xsl:with-param name="field" select="$performer"/>
  2072.                     </xsl:call-template>
  2073.                   </xsl:if>
  2074.                 </xsl:variable>
  2075.  
  2076.                 <xsl:variable name="sufixEditorLFDot">
  2077.                   <xsl:if test="string-length($editorLF)>0">
  2078.                     <xsl:value-of select="$editorLF"/>
  2079.                     <xsl:call-template name="templ_prop_ListSeparator"/>
  2080.                     <xsl:if test="$cEditors > 1">
  2081.                       <xsl:call-template name="templ_str_EditorsShortUnCap"/>
  2082.                     </xsl:if>
  2083.                     <xsl:if test="$cEditors = 1">
  2084.                       <xsl:call-template name="templ_str_EditorShortUnCap"/>
  2085.                     </xsl:if>
  2086.                   </xsl:if>
  2087.                 </xsl:variable>
  2088.  
  2089.  
  2090.                 <xsl:variable name="prefixConductorDot">
  2091.                   <xsl:if test="string-length($conductor)>0">
  2092.                     <xsl:if test="$cConductors > 1">
  2093.                       <xsl:call-template name="templ_str_ConductorsShortUnCap"/>
  2094.                     </xsl:if>
  2095.                     <xsl:if test="$cConductors = 1">
  2096.                       <xsl:call-template name="templ_str_ConductorShortUnCap"/>
  2097.                     </xsl:if>
  2098.                     <xsl:call-template name="templ_prop_Space"/>
  2099.                     <xsl:call-template name="appendField_Dot">
  2100.                       <xsl:with-param name="field" select="$conductor"/>
  2101.                     </xsl:call-template>
  2102.                   </xsl:if>
  2103.                 </xsl:variable>
  2104.  
  2105.                 <xsl:variable name="prefixComposerDot">
  2106.                   <xsl:if test="string-length($composer)>0">
  2107.                     <xsl:if test="$cComposers > 1">
  2108.                       <xsl:call-template name="templ_str_ComposersShortCap"/>
  2109.                     </xsl:if>
  2110.                     <xsl:if test="$cComposers = 1">
  2111.                       <xsl:call-template name="templ_str_ComposerShortCap"/>
  2112.                     </xsl:if>
  2113.                     <xsl:call-template name="templ_prop_Space"/>
  2114.                     <xsl:call-template name="appendField_Dot">
  2115.                       <xsl:with-param name="field" select="$composer"/>
  2116.                     </xsl:call-template>
  2117.                   </xsl:if>
  2118.                 </xsl:variable>
  2119.  
  2120.                 <xsl:variable name="prefixCompilerDot">
  2121.                   <xsl:if test="string-length($compiler)>0">
  2122.                     <xsl:if test="$cCompilers > 1">
  2123.                       <xsl:call-template name="templ_str_CompilersShortCap"/>
  2124.                     </xsl:if>
  2125.                     <xsl:if test="$cCompilers = 1">
  2126.                       <xsl:call-template name="templ_str_CompilerShortCap"/>
  2127.                     </xsl:if>
  2128.                     <xsl:call-template name="templ_prop_Space"/>
  2129.                     <xsl:call-template name="appendField_Dot">
  2130.                       <xsl:with-param name="field" select="$compiler"/>
  2131.                     </xsl:call-template>
  2132.                   </xsl:if>
  2133.                 </xsl:variable>
  2134.  
  2135.                 <xsl:variable name="sufixCompilerLFDot">
  2136.                   <xsl:if test="string-length($compilerLF)>0">
  2137.                     <xsl:value-of select="$compilerLF"/>
  2138.                     <xsl:call-template name="templ_prop_ListSeparator"/>
  2139.                     <xsl:if test="$cCompilers > 1">
  2140.                       <xsl:call-template name="templ_str_CompilersShortUnCap"/>
  2141.                     </xsl:if>
  2142.                     <xsl:if test="$cCompilers = 1">
  2143.                       <xsl:call-template name="templ_str_CompilerShortUnCap"/>
  2144.                     </xsl:if>
  2145.                   </xsl:if>
  2146.                 </xsl:variable>
  2147.  
  2148.                 <xsl:variable name="prefixVolumeDot">
  2149.                   <xsl:if test="string-length($volume)>0">
  2150.                     <xsl:call-template name="templ_str_VolumeShortCap"/>
  2151.                     <xsl:call-template name="templ_prop_Space"/>
  2152.                     <xsl:call-template name="appendField_Dot">
  2153.                       <xsl:with-param name="field" select="$volume"/>
  2154.                     </xsl:call-template>
  2155.                   </xsl:if>
  2156.                 </xsl:variable>
  2157.  
  2158.                 <xsl:variable name="sufixTranslatorLFDot">
  2159.                   <xsl:if test="string-length($translatorLF)>0">
  2160.                     <xsl:value-of select="$translatorLF"/>
  2161.                     <xsl:call-template name="templ_prop_ListSeparator"/>
  2162.                     <xsl:if test="$cTranslators > 1">
  2163.                       <xsl:call-template name="templ_str_TranslatorsShortUnCap"/>
  2164.                     </xsl:if>
  2165.                     <xsl:if test="$cTranslators = 1">
  2166.                       <xsl:call-template name="templ_str_TranslatorShortUnCap"/>
  2167.                     </xsl:if>
  2168.                   </xsl:if>
  2169.                 </xsl:variable>
  2170.  
  2171.                 <xsl:variable name="str_NumberShortCap">
  2172.                   <xsl:call-template name="templ_str_NumberShortCap"/>
  2173.                 </xsl:variable>
  2174.  
  2175.                 <xsl:variable name="prefixCaseNoDot">
  2176.                   <xsl:if test="string-length($caseNumber)>0">
  2177.  
  2178.                     <xsl:call-template name="StringFormatDot">
  2179.                       <xsl:with-param name="format" select="$str_NumberShortCap"/>
  2180.  
  2181.                       <xsl:with-param name="parameters">
  2182.                         <t:params>
  2183.                           <t:param>
  2184.                             <xsl:value-of select="$caseNumber"/>
  2185.                           </t:param>
  2186.                         </t:params>
  2187.                       </xsl:with-param>
  2188.                     </xsl:call-template>
  2189.                   </xsl:if>
  2190.                 </xsl:variable>
  2191.  
  2192.                 <xsl:variable name="existProd">
  2193.                   <xsl:if test="string-length(normalize-space($producerName))>0">
  2194.                     <xsl:text>N</xsl:text>
  2195.                   </xsl:if>
  2196.                   <xsl:if test="string-length(normalize-space(b:ProductionCompany))">
  2197.                     <xsl:text>C</xsl:text>
  2198.                   </xsl:if>
  2199.                 </xsl:variable>
  2200.  
  2201.                 <xsl:variable name="prodDot">
  2202.                   <xsl:if test="string-length($producerName)>0">
  2203.                     <xsl:call-template name="appendField_Dot">
  2204.                       <xsl:with-param name="field" select="$producerName"/>
  2205.                     </xsl:call-template>
  2206.                   </xsl:if>
  2207.  
  2208.                   <xsl:if test="string-length($producerName)=0 and string-length($productionCompany)">
  2209.                     <xsl:call-template name="appendField_Dot">
  2210.                       <xsl:with-param name="field" select="$productionCompany"/>
  2211.                     </xsl:call-template>
  2212.                   </xsl:if>
  2213.                 </xsl:variable>
  2214.  
  2215.  
  2216.                 <xsl:variable name="prefixProdDot">
  2217.                   <xsl:if test="string-length($producerName)>0 or string-length($productionCompany)>0">
  2218.                     <xsl:if test="$cProducers > 1">
  2219.                       <xsl:call-template name="templ_str_ProducersShortCap"/>
  2220.                       <xsl:call-template name="templ_prop_Space"/>
  2221.                     </xsl:if>
  2222.                     <xsl:if test="$cProducers = 1">
  2223.                       <xsl:call-template name="templ_str_ProducerShortCap"/>
  2224.                       <xsl:call-template name="templ_prop_Space"/>
  2225.                     </xsl:if>
  2226.                     
  2227.                     <xsl:value-of select="$prodDot"/>
  2228.                   </xsl:if>
  2229.                 </xsl:variable>
  2230.  
  2231.                 <xsl:variable name="producerNameDot">
  2232.                   <xsl:call-template name="appendField_Dot">
  2233.                     <xsl:with-param name="field" select="$producerName"/>
  2234.                   </xsl:call-template>
  2235.                 </xsl:variable>
  2236.  
  2237.                 <xsl:variable name="tempProdPr">
  2238.                   <xsl:if test="string-length($producerName)>0">
  2239.                     <xsl:call-template name="templ_str_ProducerShortCap"/>
  2240.                     <xsl:call-template name="templ_prop_Space"/>
  2241.                     <xsl:value-of select="$producerNameDot"/>
  2242.                   </xsl:if>
  2243.                 </xsl:variable>
  2244.  
  2245.  
  2246.                 
  2247.  
  2248.                 <xsl:variable name="authorDot">
  2249.                   <xsl:call-template name="appendField_Dot">
  2250.                     <xsl:with-param name="field" select="$author"/>
  2251.                   </xsl:call-template>
  2252.                 </xsl:variable>
  2253.  
  2254.                 <xsl:variable name="sectionAuthorDot">
  2255.                   <xsl:call-template name="appendField_Dot">
  2256.                     <xsl:with-param name="field" select="$sectionAuthor"/>
  2257.                   </xsl:call-template>
  2258.                 </xsl:variable>
  2259.  
  2260.                 <xsl:variable name="bookAuthorDot">
  2261.                   <xsl:call-template name="appendField_Dot">
  2262.                     <xsl:with-param name="field" select="$bookAuthor"/>
  2263.                   </xsl:call-template>
  2264.                 </xsl:variable>
  2265.  
  2266.                 <xsl:variable name="performerLFDot">
  2267.                   <xsl:call-template name="appendField_Dot">
  2268.                     <xsl:with-param name="field" select="$performerLF"/>
  2269.                   </xsl:call-template>
  2270.                 </xsl:variable>
  2271.  
  2272.                 <xsl:variable name="artistDot">
  2273.                   <xsl:call-template name="appendField_Dot">
  2274.                     <xsl:with-param name="field" select="$artist"/>
  2275.                   </xsl:call-template>
  2276.                 </xsl:variable>
  2277.  
  2278.                 <xsl:variable name="interviewerDot">
  2279.                   <xsl:call-template name="appendField_Dot">
  2280.                     <xsl:with-param name="field" select="$interviewer"/>
  2281.                   </xsl:call-template>
  2282.                 </xsl:variable>
  2283.  
  2284.                 <xsl:variable name="intervieweeLFDot">
  2285.                   <xsl:call-template name="appendField_Dot">
  2286.                     <xsl:with-param name="field" select="$intervieweeLF"/>
  2287.                   </xsl:call-template>
  2288.                 </xsl:variable>
  2289.  
  2290.                 <xsl:variable name="conductorLFDot">
  2291.                   <xsl:call-template name="appendField_Dot">
  2292.                     <xsl:with-param name="field" select="$conductorLF"/>
  2293.                   </xsl:call-template>
  2294.                 </xsl:variable>
  2295.  
  2296.                 <xsl:variable name="inventorLFDot">
  2297.                   <xsl:call-template name="appendField_Dot">
  2298.                     <xsl:with-param name="field" select="$inventorLF"/>
  2299.                   </xsl:call-template>
  2300.                 </xsl:variable>
  2301.  
  2302.                 <xsl:variable name="writerDot">
  2303.                   <xsl:call-template name="appendField_Dot">
  2304.                     <xsl:with-param name="field" select="$writer"/>
  2305.                   </xsl:call-template>
  2306.                 </xsl:variable>
  2307.  
  2308.                 <xsl:variable name="composerLFDot">
  2309.                   <xsl:call-template name="appendField_Dot">
  2310.                     <xsl:with-param name="field" select="$composerLF"/>
  2311.                   </xsl:call-template>
  2312.                 </xsl:variable>
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.                 
  2319.  
  2320.                 <xsl:choose>
  2321.                   <xsl:when test="b:SourceType='Book'">
  2322.                     <xsl:choose>
  2323.  
  2324.                       
  2325.                       <xsl:when test="string-length($editor)>0 and string-length($author)=0">
  2326.  
  2327.                         <xsl:if test="string-length($sufixEditorLFDot)>0">
  2328.                           <xsl:value-of select="$sufixEditorLFDot"/>
  2329.                         </xsl:if>
  2330.  
  2331.  
  2332.                         <xsl:if test="string-length($titleDot)>0">
  2333.  
  2334.                           <xsl:if test="string-length($sufixEditorLFDot)>0">
  2335.                             <xsl:call-template name="templ_prop_Space"/>
  2336.                           </xsl:if>
  2337.  
  2338.                           <u>
  2339.                             <xsl:value-of select="$titleDot"/>
  2340.                           </u>
  2341.                         </xsl:if>
  2342.  
  2343.  
  2344.                         <xsl:if test="string-length($prefixTranslatorDot)>0">
  2345.  
  2346.                           <xsl:if test="string-length($sufixEditorLFDot)>0 or string-length($titleDot)>0">
  2347.                             <xsl:call-template name="templ_prop_Space"/>
  2348.                           </xsl:if>
  2349.  
  2350.                           <xsl:value-of select="$prefixTranslatorDot"/>
  2351.                         </xsl:if>
  2352.  
  2353.                         <xsl:if test="string-length($tempCPY)>0">
  2354.                           <xsl:if test="string-length($sufixEditorLFDot)>0 or string-length($titleDot)>0 or string-length($prefixTranslatorDot)>0">
  2355.                             <xsl:call-template name="templ_prop_Space"/>
  2356.                           </xsl:if>
  2357.  
  2358.                           <xsl:value-of select="$tempCPY"/>
  2359.                         </xsl:if>
  2360.  
  2361.                       </xsl:when>
  2362.  
  2363.  
  2364.  
  2365.                       
  2366.                       <xsl:when test="string-length($translator)>0 and string-length($author)=0">
  2367.  
  2368.                         <xsl:if test="string-length($sufixTranslatorLFDot)>0">
  2369.                           <xsl:value-of select="$sufixTranslatorLFDot"/>
  2370.                         </xsl:if>
  2371.  
  2372.                         <xsl:if test="string-length($titleDot)>0">
  2373.                           <xsl:if test="string-length($sufixTranslatorLFDot)>0">
  2374.                             <xsl:call-template name="templ_prop_Space"/>
  2375.                           </xsl:if>
  2376.  
  2377.                           <u>
  2378.                             <xsl:value-of select="$titleDot"/>
  2379.                           </u>
  2380.                         </xsl:if>
  2381.  
  2382.                         <xsl:if test="string-length($tempCPY)>0">
  2383.                           <xsl:if test="string-length($sufixTranslatorLFDot)>0 or string-length($titleDot)>0">
  2384.                             <xsl:call-template name="templ_prop_Space"/>
  2385.                           </xsl:if>
  2386.  
  2387.                           <xsl:value-of select="$tempCPY"/>
  2388.                         </xsl:if>
  2389.  
  2390.                       </xsl:when>
  2391.                       
  2392.                       <xsl:otherwise>
  2393.  
  2394.  
  2395.                         <xsl:if test="string-length($authorDot)>0">
  2396.                           <xsl:value-of select="$authorDot"/>
  2397.                         </xsl:if>
  2398.  
  2399.                         <xsl:if test="string-length($titleDot)>0">
  2400.                           <xsl:if test="string-length($authorDot)>0">
  2401.                             <xsl:call-template name="templ_prop_Space"/>
  2402.                           </xsl:if>
  2403.  
  2404.                           <u>
  2405.                             <xsl:value-of select="$titleDot"/>
  2406.                           </u>
  2407.                         </xsl:if>
  2408.  
  2409.                         <xsl:if test="string-length($prefixEditorDot)>0">
  2410.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  2411.                             <xsl:call-template name="templ_prop_Space"/>
  2412.                           </xsl:if>
  2413.                           <xsl:value-of select="$prefixEditorDot"/>
  2414.                         </xsl:if>
  2415.  
  2416.                         <xsl:if test="string-length($prefixTranslatorDot)>0">
  2417.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0">
  2418.                             <xsl:call-template name="templ_prop_Space"/>
  2419.                           </xsl:if>
  2420.  
  2421.                           <xsl:value-of select="$prefixTranslatorDot"/>
  2422.                         </xsl:if>
  2423.  
  2424.                         <xsl:if test="string-length($tempCPY)>0">
  2425.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0">
  2426.                             <xsl:call-template name="templ_prop_Space"/>
  2427.                           </xsl:if>
  2428.  
  2429.                           <xsl:value-of select="$tempCPY"/>
  2430.                         </xsl:if>
  2431.  
  2432.                       </xsl:otherwise>
  2433.  
  2434.  
  2435.                     </xsl:choose>
  2436.                   </xsl:when>
  2437.  
  2438.  
  2439.  
  2440.                   <xsl:when test="b:SourceType='BookSection'">
  2441.  
  2442.  
  2443.                     <xsl:if test="string-length($sectionAuthorDot)>0">
  2444.                       <xsl:value-of select="$sectionAuthorDot"/>
  2445.                     </xsl:if>
  2446.  
  2447.  
  2448.  
  2449.                     <xsl:if test="string-length($titleDot)>0">
  2450.  
  2451.                       <xsl:if test="string-length($sectionAuthorDot)>0">
  2452.                         <xsl:call-template name="templ_prop_Space"/>
  2453.                       </xsl:if>
  2454.  
  2455.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  2456.  
  2457.                       <xsl:value-of select="$titleDot"/>
  2458.  
  2459.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  2460.                     </xsl:if>
  2461.  
  2462.  
  2463.                     <xsl:if test="string-length($bookAuthorDot)>0">
  2464.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0">
  2465.                         <xsl:call-template name="templ_prop_Space"/>
  2466.                       </xsl:if>
  2467.  
  2468.                       <xsl:value-of select="$bookAuthorDot"/>
  2469.                     </xsl:if>
  2470.  
  2471.                     <xsl:if test="string-length($bookTitleDot)>0">
  2472.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0 or string-length($bookAuthorDot)>0">
  2473.                         <xsl:call-template name="templ_prop_Space"/>
  2474.                       </xsl:if>
  2475.  
  2476.                       <u>
  2477.                         <xsl:value-of select="$bookTitleDot"/>
  2478.                       </u>
  2479.                     </xsl:if>
  2480.  
  2481.                     <xsl:if test="string-length($prefixEditorDot)>0">
  2482.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0 or string-length($bookAuthorDot)>0 or string-length($bookTitleDot)>0">
  2483.                         <xsl:call-template name="templ_prop_Space"/>
  2484.                       </xsl:if>
  2485.  
  2486.                       <xsl:value-of select="$prefixEditorDot"/>
  2487.                     </xsl:if>
  2488.  
  2489.                     <xsl:if test="string-length($prefixTranslatorDot)>0">
  2490.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0 or string-length($bookAuthorDot)>0 or string-length($bookTitleDot)>0 or string-length($prefixEditorDot)>0">
  2491.                         <xsl:call-template name="templ_prop_Space"/>
  2492.                       </xsl:if>
  2493.  
  2494.                       <xsl:value-of select="$prefixTranslatorDot"/>
  2495.                     </xsl:if>
  2496.  
  2497.                     <xsl:if test="string-length($tempCPY)>0">
  2498.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0 or string-length($bookAuthorDot)>0 or string-length($bookTitleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0">
  2499.                         <xsl:call-template name="templ_prop_Space"/>
  2500.                       </xsl:if>
  2501.  
  2502.                       <xsl:value-of select="$tempCPY"/>
  2503.                     </xsl:if>
  2504.  
  2505.                     <xsl:if test="string-length($pagesDot)>0">
  2506.                       <xsl:if test="string-length($sectionAuthorDot)>0 or string-length($titleDot)>0 or string-length($bookAuthorDot)>0 or string-length($bookTitleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0 or string-length($tempCPY)>0">
  2507.                         <xsl:call-template name="templ_prop_Space"/>
  2508.                       </xsl:if>
  2509.  
  2510.                       <xsl:value-of select="$pagesDot"/>
  2511.                     </xsl:if>
  2512.  
  2513.                   </xsl:when>
  2514.  
  2515.  
  2516.                   <xsl:when test="b:SourceType='JournalArticle'">
  2517.  
  2518.                     <xsl:if test="string-length($authorDot)>0">
  2519.                       <xsl:value-of select="$authorDot"/>
  2520.                     </xsl:if>
  2521.  
  2522.                     <xsl:if test="string-length($titleDot)>0">
  2523.                       <xsl:if test="string-length($authorDot)>0">
  2524.                         <xsl:call-template name="templ_prop_Space"/>
  2525.                       </xsl:if>
  2526.  
  2527.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  2528.  
  2529.                       <xsl:value-of select="$titleDot"/>
  2530.  
  2531.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  2532.                     </xsl:if>
  2533.  
  2534.                     <xsl:if test="string-length($journalName)>0">
  2535.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  2536.                         <xsl:call-template name="templ_prop_Space"/>
  2537.                       </xsl:if>
  2538.  
  2539.                       <u>
  2540.                         <xsl:value-of select="$journalName"/>
  2541.                       </u>
  2542.                     </xsl:if>
  2543.  
  2544.                     <xsl:if test="string-length($tempVIYP)>0">
  2545.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($journalName)>0">
  2546.                         <xsl:call-template name="templ_prop_Space"/>
  2547.                       </xsl:if>
  2548.  
  2549.                       <xsl:value-of select="$tempVIYP"/>
  2550.                     </xsl:if>
  2551.  
  2552.                   </xsl:when>
  2553.  
  2554.  
  2555.  
  2556.  
  2557.                   <xsl:when test="b:SourceType='ConferenceProceedings'">
  2558.  
  2559.                     <xsl:choose>
  2560.                       
  2561.                       <xsl:when test="string-length($editor)>0 and string-length($author)=0">
  2562.  
  2563.                         <xsl:if test="string-length($sufixEditorLFDot)>0">
  2564.                           <xsl:value-of select="$sufixEditorLFDot"/>
  2565.                         </xsl:if>
  2566.  
  2567.                         <xsl:if test="string-length($titleDot)>0">
  2568.                           <xsl:if test="string-length($sufixEditorLFDot)>0">
  2569.                             <xsl:call-template name="templ_prop_Space"/>
  2570.                           </xsl:if>
  2571.  
  2572.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2573.  
  2574.                           <xsl:value-of select="$titleDot"/>
  2575.  
  2576.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2577.                         </xsl:if>
  2578.  
  2579.                         <xsl:if test="string-length($conferenceNameDot)>0">
  2580.                           <xsl:if test="string-length($sufixEditorLFDot)>0 or string-length($titleDot)>0">
  2581.                             <xsl:call-template name="templ_prop_Space"/>
  2582.                           </xsl:if>
  2583.  
  2584.                           <u>
  2585.                             <xsl:value-of select="$conferenceNameDot"/>
  2586.                           </u>
  2587.                         </xsl:if>
  2588.  
  2589.                         <xsl:if test="string-length($tempCPY)>0">
  2590.                           <xsl:if test="string-length($sufixEditorLFDot)>0 or string-length($titleDot)>0 or string-length($conferenceNameDot)>0">
  2591.                             <xsl:call-template name="templ_prop_Space"/>
  2592.                           </xsl:if>
  2593.  
  2594.                           <xsl:value-of select="$tempCPY"/>
  2595.                         </xsl:if>
  2596.  
  2597.  
  2598.                         <xsl:if test="string-length($pagesDot)>0">
  2599.                           <xsl:if test="string-length($sufixEditorLFDot)>0 or string-length($titleDot)>0 or string-length($conferenceNameDot)>0 or string-length($tempCPY)>0">
  2600.                             <xsl:call-template name="templ_prop_Space"/>
  2601.                           </xsl:if>
  2602.  
  2603.                           <xsl:value-of select="$pagesDot"/>
  2604.                         </xsl:if>
  2605.  
  2606.  
  2607.                       </xsl:when>
  2608.  
  2609.  
  2610.                       
  2611.                       <xsl:otherwise>
  2612.  
  2613.                         <xsl:if test="string-length($authorDot)>0">
  2614.                           <xsl:value-of select="$authorDot"/>
  2615.                         </xsl:if>
  2616.  
  2617.                         <xsl:if test="string-length($titleDot)>0">
  2618.                           <xsl:if test="string-length($authorDot)>0">
  2619.                             <xsl:call-template name="templ_prop_Space"/>
  2620.                           </xsl:if>
  2621.  
  2622.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2623.  
  2624.                           <xsl:value-of select="$titleDot"/>
  2625.  
  2626.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2627.                         </xsl:if>
  2628.  
  2629.                         <xsl:if test="string-length($conferenceNameDot)>0">
  2630.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  2631.                             <xsl:call-template name="templ_prop_Space"/>
  2632.                           </xsl:if>
  2633.  
  2634.                           <u>
  2635.                             <xsl:value-of select="$conferenceNameDot"/>
  2636.                           </u>
  2637.                         </xsl:if>
  2638.  
  2639.                         <xsl:if test="string-length($prefixEditorDot)>0">
  2640.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($conferenceNameDot)>0">
  2641.                             <xsl:call-template name="templ_prop_Space"/>
  2642.                           </xsl:if>
  2643.  
  2644.                           <xsl:value-of select="$prefixEditorDot"/>
  2645.                         </xsl:if>
  2646.  
  2647.                         <xsl:if test="string-length($tempCPY)>0">
  2648.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($conferenceNameDot)>0 or string-length($prefixEditorDot)>0">
  2649.                             <xsl:call-template name="templ_prop_Space"/>
  2650.                           </xsl:if>
  2651.  
  2652.                           <xsl:value-of select="$tempCPY"/>
  2653.                         </xsl:if>
  2654.  
  2655.                         <xsl:if test="string-length($pagesDot)>0">
  2656.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($conferenceNameDot)>0 or string-length($prefixEditorDot)>0 or string-length($tempCPY)>0">
  2657.                             <xsl:call-template name="templ_prop_Space"/>
  2658.                           </xsl:if>
  2659.  
  2660.                           <xsl:value-of select="$pagesDot"/>
  2661.                         </xsl:if>
  2662.  
  2663.                       </xsl:otherwise>
  2664.  
  2665.                     </xsl:choose>
  2666.  
  2667.                   </xsl:when>
  2668.  
  2669.  
  2670.  
  2671.                   <xsl:when test="b:SourceType='Report'">
  2672.  
  2673.                     <xsl:choose>
  2674.                       
  2675.                       <xsl:when test="string-length($cityDot)>0">
  2676.  
  2677.  
  2678.                         <xsl:if test="string-length($authorDot)>0">
  2679.                           <xsl:value-of select="$authorDot"/>
  2680.                         </xsl:if>
  2681.  
  2682.                         <xsl:if test="string-length($titleDot)>0">
  2683.                           <xsl:if test="string-length($authorDot)>0">
  2684.                             <xsl:call-template name="templ_prop_Space"/>
  2685.                           </xsl:if>
  2686.  
  2687.                           <u>
  2688.                             <xsl:value-of select="$titleDot"/>
  2689.                           </u>
  2690.                         </xsl:if>
  2691.  
  2692.                         <xsl:if test="string-length($thesisTypeDot)>0">
  2693.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  2694.                             <xsl:call-template name="templ_prop_Space"/>
  2695.                           </xsl:if>
  2696.  
  2697.                           <xsl:value-of select="$thesisTypeDot"/>
  2698.                         </xsl:if>
  2699.  
  2700.                         <xsl:if test="string-length($institutionDot)>0">
  2701.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($thesisTypeDot)>0">
  2702.                             <xsl:call-template name="templ_prop_Space"/>
  2703.                           </xsl:if>
  2704.  
  2705.                           <xsl:value-of select="$institutionDot"/>
  2706.                         </xsl:if>
  2707.  
  2708.                         <xsl:if test="string-length($tempCPY)>0">
  2709.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($thesisTypeDot)>0 or string-length($institutionDot)>0">
  2710.                             <xsl:call-template name="templ_prop_Space"/>
  2711.                           </xsl:if>
  2712.  
  2713.                           <xsl:value-of select="$tempCPY"/>
  2714.                         </xsl:if>
  2715.  
  2716.                       </xsl:when>
  2717.  
  2718.  
  2719.                       
  2720.                       <xsl:otherwise>
  2721.                         <xsl:if test="string-length($authorDot)>0">
  2722.                           <xsl:value-of select="$authorDot"/>
  2723.                         </xsl:if>
  2724.  
  2725.                         <xsl:if test="string-length($titleDot)>0">
  2726.                           <xsl:if test="string-length($authorDot)>0">
  2727.                             <xsl:call-template name="templ_prop_Space"/>
  2728.                           </xsl:if>
  2729.  
  2730.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2731.  
  2732.                           <xsl:value-of select="$titleDot"/>
  2733.  
  2734.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2735.                         </xsl:if>
  2736.  
  2737.                         <xsl:if test="string-length($thesisTypeDot)>0">
  2738.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  2739.                             <xsl:call-template name="templ_prop_Space"/>
  2740.                           </xsl:if>
  2741.  
  2742.                           <xsl:value-of select="$thesisTypeDot"/>
  2743.                         </xsl:if>
  2744.  
  2745.                         <xsl:if test="string-length($tempIY)>0">
  2746.                           <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($thesisTypeDot)>0">
  2747.                             <xsl:call-template name="templ_prop_Space"/>
  2748.                           </xsl:if>
  2749.  
  2750.                           <xsl:value-of select="$tempIY"/>
  2751.                         </xsl:if>
  2752.  
  2753.                       </xsl:otherwise>
  2754.  
  2755.  
  2756.                     </xsl:choose>
  2757.                   </xsl:when>
  2758.  
  2759.  
  2760.  
  2761.                   <xsl:when test="b:SourceType='SoundRecording'">
  2762.                     <xsl:choose>
  2763.                       
  2764.                       <xsl:when test="string-length($performerLF)>0">
  2765.  
  2766.                         <xsl:if test="string-length($performerLFDot)>0">
  2767.                           <xsl:value-of select="$performerLFDot"/>
  2768.                         </xsl:if>
  2769.  
  2770.                         <xsl:if test="string-length($titleDot)>0">
  2771.                           <xsl:if test="string-length($performerLFDot)>0">
  2772.                             <xsl:call-template name="templ_prop_Space"/>
  2773.                           </xsl:if>
  2774.  
  2775.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2776.                           <xsl:value-of select="$titleDot"/>
  2777.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2778.                         </xsl:if>
  2779.  
  2780.                         <xsl:if test="string-length($albumTitleDot)>0">
  2781.                           <xsl:if test="string-length($performerLFDot)>0 or string-length($titleDot)>0">
  2782.                             <xsl:call-template name="templ_prop_Space"/>
  2783.                           </xsl:if>
  2784.  
  2785.                           <u>
  2786.                             <xsl:value-of select="$albumTitleDot"/>
  2787.                           </u>
  2788.                         </xsl:if>
  2789.  
  2790.                         <xsl:if test="string-length($prefixConductorDot)>0">
  2791.                           <xsl:if test="string-length($performerLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0">
  2792.                             <xsl:call-template name="templ_prop_Space"/>
  2793.                           </xsl:if>
  2794.  
  2795.                           <xsl:value-of select="$prefixConductorDot"/>
  2796.                         </xsl:if>
  2797.  
  2798.                         <xsl:if test="string-length($prefixComposerDot)>0">
  2799.                           <xsl:if test="string-length($performerLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($prefixConductorDot)>0">
  2800.                             <xsl:call-template name="templ_prop_Space"/>
  2801.                           </xsl:if>
  2802.  
  2803.                           <xsl:variable name="str_ByCap">
  2804.                             <xsl:call-template name="templ_str_ByCap"/>
  2805.                           </xsl:variable>
  2806.  
  2807.                           <xsl:call-template name="StringFormatDot">
  2808.                             <xsl:with-param name="format" select="$str_ByCap"/>
  2809.                             <xsl:with-param name="parameters">
  2810.                               <t:params>
  2811.                                 <t:param>
  2812.                                   <xsl:value-of select="$composer"/>
  2813.                                 </t:param>
  2814.                               </t:params>
  2815.                             </xsl:with-param>
  2816.                           </xsl:call-template>
  2817.                         </xsl:if>
  2818.  
  2819.                         <xsl:if test="string-length($tempProdPr)>0">
  2820.                           <xsl:if test="string-length($performerLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($prefixConductorDot)>0 or string-length($prefixComposerDot)>0">
  2821.                             <xsl:call-template name="templ_prop_Space"/>
  2822.                           </xsl:if>
  2823.  
  2824.                           <xsl:value-of select="$tempProdPr"/>
  2825.                         </xsl:if>
  2826.  
  2827.                         <xsl:if test="string-length($tempCPcY)>0">
  2828.                           <xsl:if test="string-length($performerLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($prefixConductorDot)>0 or string-length($prefixComposerDot)>0 or string-length($tempProdPr)>0">
  2829.                             <xsl:call-template name="templ_prop_Space"/>
  2830.                           </xsl:if>
  2831.  
  2832.                           <xsl:value-of select="$tempCPcY"/>
  2833.                         </xsl:if>
  2834.  
  2835.  
  2836.                       </xsl:when>
  2837.  
  2838.                       
  2839.                       <xsl:when test="string-length($conductorLFDot)>0">
  2840.  
  2841.                         <xsl:if test="string-length($conductorLFDot)>0">
  2842.                           <xsl:value-of select="$conductorLFDot"/>
  2843.                         </xsl:if>
  2844.  
  2845.  
  2846.                         <xsl:if test="string-length($titleDot)>0">
  2847.                           <xsl:if test="string-length($conductorLFDot)>0">
  2848.                             <xsl:call-template name="templ_prop_Space"/>
  2849.                           </xsl:if>
  2850.  
  2851.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2852.                           <xsl:value-of select="$titleDot"/>
  2853.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2854.                         </xsl:if>
  2855.  
  2856.                         <xsl:if test="string-length($albumTitleDot)>0">
  2857.                           <xsl:if test="string-length($conductorLFDot)>0 or string-length($titleDot)>0">
  2858.                             <xsl:call-template name="templ_prop_Space"/>
  2859.                           </xsl:if>
  2860.  
  2861.                           <u>
  2862.                             <xsl:value-of select="$albumTitleDot"/>
  2863.                           </u>
  2864.                         </xsl:if>
  2865.  
  2866.                         <xsl:if test="string-length($prefixComposerDot)>0">
  2867.                           <xsl:if test="string-length($conductorLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0">
  2868.                             <xsl:call-template name="templ_prop_Space"/>
  2869.                           </xsl:if>
  2870.  
  2871.                           <xsl:variable name="str_ByCap">
  2872.                             <xsl:call-template name="templ_str_ByCap"/>
  2873.                           </xsl:variable>
  2874.  
  2875.                           <xsl:call-template name="StringFormatDot">
  2876.                             <xsl:with-param name="format" select="$str_ByCap"/>
  2877.                             <xsl:with-param name="parameters">
  2878.                               <t:params>
  2879.                                 <t:param>
  2880.                                   <xsl:value-of select="$composer"/>
  2881.                                 </t:param>
  2882.                               </t:params>
  2883.                             </xsl:with-param>
  2884.                           </xsl:call-template>
  2885.                         </xsl:if>
  2886.  
  2887.                         <xsl:if test="string-length($tempProdPr)>0">
  2888.                           <xsl:if test="string-length($conductorLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($prefixComposerDot)>0">
  2889.                             <xsl:call-template name="templ_prop_Space"/>
  2890.                           </xsl:if>
  2891.  
  2892.                           <xsl:value-of select="$tempProdPr"/>
  2893.                         </xsl:if>
  2894.  
  2895.                         <xsl:if test="string-length($tempCPcY)>0">
  2896.                           <xsl:if test="string-length($conductorLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($prefixComposerDot)>0 or string-length($tempProdPr)>0">
  2897.                             <xsl:call-template name="templ_prop_Space"/>
  2898.                           </xsl:if>
  2899.  
  2900.                           <xsl:value-of select="$tempCPcY"/>
  2901.                         </xsl:if>
  2902.  
  2903.                       </xsl:when>
  2904.  
  2905.                       
  2906.                       <xsl:otherwise>
  2907.  
  2908.                         <xsl:if test="string-length($composerLFDot)>0">
  2909.                           <xsl:value-of select="$composerLFDot"/>
  2910.                         </xsl:if>
  2911.  
  2912.  
  2913.                         <xsl:if test="string-length($titleDot)>0">
  2914.                           <xsl:if test="string-length($composerLFDot)>0">
  2915.                             <xsl:call-template name="templ_prop_Space"/>
  2916.                           </xsl:if>
  2917.  
  2918.                           <xsl:call-template name="templ_prop_OpenQuote"/>
  2919.                           <xsl:value-of select="$titleDot"/>
  2920.                           <xsl:call-template name="templ_prop_CloseQuote"/>
  2921.                         </xsl:if>
  2922.  
  2923.                         <xsl:if test="string-length($albumTitleDot)>0">
  2924.                           <xsl:if test="string-length($composerLFDot)>0 or string-length($titleDot)>0">
  2925.                             <xsl:call-template name="templ_prop_Space"/>
  2926.                           </xsl:if>
  2927.  
  2928.                           <u>
  2929.                             <xsl:value-of select="$albumTitleDot"/>
  2930.                           </u>
  2931.                         </xsl:if>
  2932.  
  2933.                         <xsl:if test="string-length($tempProdPr)>0">
  2934.                           <xsl:if test="string-length($composerLFDot)>0 or string-length($titleDot)>0">
  2935.                             <xsl:call-template name="templ_prop_Space"/>
  2936.                           </xsl:if>
  2937.  
  2938.                           <xsl:value-of select="$tempProdPr"/>
  2939.                         </xsl:if>
  2940.  
  2941.                         <xsl:if test="string-length($tempCPcY)>0">
  2942.                           <xsl:if test="string-length($composerLFDot)>0 or string-length($titleDot)>0 or string-length($albumTitleDot)>0 or string-length($tempProdPr)>0">
  2943.                             <xsl:call-template name="templ_prop_Space"/>
  2944.                           </xsl:if>
  2945.  
  2946.                           <xsl:value-of select="$tempCPcY"/>
  2947.                         </xsl:if>
  2948.  
  2949.  
  2950.                       </xsl:otherwise>
  2951.  
  2952.  
  2953.  
  2954.                     </xsl:choose>
  2955.                   </xsl:when>
  2956.  
  2957.  
  2958.                   <xsl:when test="b:SourceType='Performance'">
  2959.  
  2960.  
  2961.  
  2962.  
  2963.                     <xsl:if test="string-length($titleDot)>0">
  2964.                       <u>
  2965.                         <xsl:value-of select="$titleDot"/>
  2966.                       </u>
  2967.                     </xsl:if>
  2968.  
  2969.  
  2970.                     <xsl:if test="string-length($writerDot)>0">
  2971.                       <xsl:if test="string-length($titleDot)>0">
  2972.                         <xsl:call-template name="templ_prop_Space"/>
  2973.                       </xsl:if>
  2974.                       <xsl:variable name="str_ByCap">
  2975.                         <xsl:call-template name="templ_str_ByCap"/>
  2976.                       </xsl:variable>
  2977.  
  2978.                       <xsl:call-template name="StringFormatDot">
  2979.                         <xsl:with-param name="format" select="$str_ByCap"/>
  2980.                         <xsl:with-param name="parameters">
  2981.                           <t:params>
  2982.                             <t:param>
  2983.                               <xsl:value-of select="$writer"/>
  2984.                             </t:param>
  2985.                           </t:params>
  2986.                         </xsl:with-param>
  2987.                       </xsl:call-template>
  2988.                     </xsl:if>
  2989.  
  2990.                     <xsl:if test="string-length($prefixDirectorDot)>0">
  2991.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0">
  2992.                         <xsl:call-template name="templ_prop_Space"/>
  2993.                       </xsl:if>
  2994.  
  2995.                       <xsl:value-of select="$prefixDirectorDot"/>
  2996.                     </xsl:if>
  2997.  
  2998.                     <xsl:if test="string-length($prefixPerformerDot)>0">
  2999.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0">
  3000.                         <xsl:call-template name="templ_prop_Space"/>
  3001.                       </xsl:if>
  3002.  
  3003.                       <xsl:value-of select="$prefixPerformerDot"/>
  3004.                     </xsl:if>
  3005.  
  3006.                     <xsl:if test="string-length($tempTC)>0">
  3007.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0 or string-length($prefixPerformerDot)>0">
  3008.                         <xsl:call-template name="templ_prop_Space"/>
  3009.                       </xsl:if>
  3010.  
  3011.                       <xsl:value-of select="$tempTC"/>
  3012.                     </xsl:if>
  3013.  
  3014.  
  3015.                     <xsl:if test="string-length($dateDot)>0">
  3016.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0 or string-length($prefixPerformerDot)>0 or string-length($tempTC)>0">
  3017.                         <xsl:call-template name="templ_prop_Space"/>
  3018.                       </xsl:if>
  3019.  
  3020.                       <xsl:value-of select="$dateDot"/>
  3021.                     </xsl:if>
  3022.  
  3023.  
  3024.                   </xsl:when>
  3025.  
  3026.  
  3027.                   <xsl:when test="b:SourceType='Art'">
  3028.  
  3029.  
  3030.                     <xsl:choose>
  3031.                       
  3032.                       <xsl:when test="string-length($publicationTitle)>0">
  3033.  
  3034.                         <xsl:if test="string-length($artistDot)>0">
  3035.                           <xsl:value-of select="normalize-space($artistDot)"/>
  3036.                         </xsl:if>
  3037.  
  3038.                         <xsl:if test="string-length($titleDot)>0">
  3039.                           <xsl:if test="string-length($artistDot)>0">
  3040.                             <xsl:call-template name="templ_prop_Space"/>
  3041.                           </xsl:if>
  3042.  
  3043.                           <u>
  3044.                             <xsl:value-of select="$titleDot"/>
  3045.                           </u>
  3046.                         </xsl:if>
  3047.  
  3048.                         <xsl:if test="string-length($institutionDot)>0">
  3049.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0">
  3050.                             <xsl:call-template name="templ_prop_Space"/>
  3051.                           </xsl:if>
  3052.  
  3053.                           <xsl:value-of select="$institutionDot"/>
  3054.                         </xsl:if>
  3055.  
  3056.                         <xsl:if test="string-length($publicationTitleDot)>0">
  3057.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0 or string-length($institutionDot)>0">
  3058.                             <xsl:call-template name="templ_prop_Space"/>
  3059.                           </xsl:if>
  3060.  
  3061.                           <u>
  3062.                             <xsl:value-of select="$publicationTitleDot"/>
  3063.                           </u>
  3064.                         </xsl:if>
  3065.  
  3066.                         <xsl:if test="string-length($tempCPY)>0">
  3067.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0 or string-length($institutionDot)>0 or string-length($publicationTitle)>0">
  3068.                             <xsl:call-template name="templ_prop_Space"/>
  3069.                           </xsl:if>
  3070.  
  3071.                           <xsl:value-of select="$tempCPY"/>
  3072.                         </xsl:if>
  3073.  
  3074.                         <xsl:if test="string-length($pagesDot)>0">
  3075.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0 or string-length($institutionDot)>0 or string-length($publicationTitle)>0 or string-length($tempCPY)>0">
  3076.                             <xsl:call-template name="templ_prop_Space"/>
  3077.                           </xsl:if>
  3078.  
  3079.                           <xsl:value-of select="$pagesDot"/>
  3080.                         </xsl:if>
  3081.  
  3082.                       </xsl:when>
  3083.  
  3084.                       
  3085.                       <xsl:otherwise>
  3086.  
  3087.                         <xsl:if test="string-length($artistDot)>0">
  3088.                           <xsl:value-of select="normalize-space($artistDot)"/>
  3089.                         </xsl:if>
  3090.  
  3091.  
  3092.                         <xsl:if test="string-length($titleDot)>0">
  3093.                           <xsl:if test="string-length($artistDot)>0">
  3094.                             <xsl:call-template name="templ_prop_Space"/>
  3095.                           </xsl:if>
  3096.  
  3097.                           <u>
  3098.                             <xsl:value-of select="$titleDot"/>
  3099.                           </u>
  3100.                         </xsl:if>
  3101.  
  3102.                         <xsl:if test="string-length($tempIC)>0">
  3103.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0">
  3104.                             <xsl:call-template name="templ_prop_Space"/>
  3105.                           </xsl:if>
  3106.  
  3107.                           <xsl:value-of select="$tempIC"/>
  3108.                         </xsl:if>
  3109.  
  3110.                         <xsl:if test="string-length($pagesDot)>0">
  3111.                           <xsl:if test="string-length($artistDot)>0 or string-length($titleDot)>0 or string-length($tempIC)>0">
  3112.                             <xsl:call-template name="templ_prop_Space"/>
  3113.                           </xsl:if>
  3114.  
  3115.                           <xsl:value-of select="$pagesDot"/>
  3116.                         </xsl:if>
  3117.  
  3118.                       </xsl:otherwise>
  3119.  
  3120.                     </xsl:choose>
  3121.  
  3122.  
  3123.  
  3124.                   </xsl:when>
  3125.  
  3126.                   <xsl:when test="b:SourceType='DocumentFromInternetSite'">
  3127.  
  3128.  
  3129.  
  3130.                     <xsl:if test="string-length($authorDot)>0">
  3131.                       <xsl:value-of select="$authorDot"/>
  3132.                     </xsl:if>
  3133.  
  3134.  
  3135.                     <xsl:if test="string-length($titleDot)>0">
  3136.                       <xsl:if test="string-length($authorDot)>0">
  3137.                         <xsl:call-template name="templ_prop_Space"/>
  3138.                       </xsl:if>
  3139.  
  3140.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  3141.                       <xsl:value-of select="$titleDot"/>
  3142.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  3143.                     </xsl:if>
  3144.  
  3145.                     <xsl:if test="string-length($prefixVersionDot)>0">
  3146.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  3147.                         <xsl:call-template name="templ_prop_Space"/>
  3148.                       </xsl:if>
  3149.                       <xsl:value-of select="$prefixVersionDot"/>
  3150.                     </xsl:if>
  3151.  
  3152.                     <xsl:if test="string-length($dateDot)>0">
  3153.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($versionDot)>0">
  3154.                         <xsl:call-template name="templ_prop_Space"/>
  3155.                       </xsl:if>
  3156.  
  3157.                       <xsl:value-of select="$dateDot"/>
  3158.                     </xsl:if>
  3159.  
  3160.                     <xsl:if test="string-length($internetSiteTitleDot)>0">
  3161.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0">
  3162.                         <xsl:call-template name="templ_prop_Space"/>
  3163.                       </xsl:if>
  3164.  
  3165.                       <u>
  3166.                         <xsl:value-of select="$internetSiteTitleDot"/>
  3167.                       </u>
  3168.                     </xsl:if>
  3169.  
  3170.  
  3171.                     <xsl:if test="string-length($prefixEditorDot)>0">
  3172.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0 or string-length($internetSiteTitleDot)>0">
  3173.                         <xsl:call-template name="templ_prop_Space"/>
  3174.                       </xsl:if>
  3175.  
  3176.                       <xsl:value-of select="$prefixEditorDot"/>
  3177.                     </xsl:if>
  3178.  
  3179.                     <xsl:if test="string-length($prodDot)>0">
  3180.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0 or string-length($internetSiteTitleDot)>0 or string-length($prefixEditorDot)>0">
  3181.                         <xsl:call-template name="templ_prop_Space"/>
  3182.                       </xsl:if>
  3183.  
  3184.                       <xsl:value-of select="$prodDot"/>
  3185.                     </xsl:if>
  3186.  
  3187.                     <xsl:if test="string-length($tempDaU)>0">
  3188.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0 or string-length($internetSiteTitleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prodDot)>0">
  3189.                         <xsl:call-template name="templ_prop_Space"/>
  3190.                       </xsl:if>
  3191.  
  3192.                       <xsl:value-of select="$tempDaU"/>
  3193.                     </xsl:if>
  3194.  
  3195.                   </xsl:when>
  3196.  
  3197.  
  3198.  
  3199.  
  3200.                   <xsl:when test="b:SourceType='InternetSite'">
  3201.  
  3202.                     <xsl:if test="string-length($authorDot)>0">
  3203.                       <xsl:value-of select="$authorDot"/>
  3204.                     </xsl:if>
  3205.  
  3206.  
  3207.                     <xsl:if test="string-length($titleDot)>0">
  3208.                       <xsl:if test="string-length($authorDot)>0">
  3209.                         <xsl:call-template name="templ_prop_Space"/>
  3210.                       </xsl:if>
  3211.  
  3212.                       <u>
  3213.                         <xsl:value-of select="$titleDot"/>
  3214.                       </u>
  3215.                     </xsl:if>
  3216.  
  3217.                     <xsl:if test="string-length($prefixEditorDot)>0">
  3218.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  3219.                         <xsl:call-template name="templ_prop_Space"/>
  3220.                       </xsl:if>
  3221.  
  3222.                       <xsl:value-of select="$prefixEditorDot"/>
  3223.                     </xsl:if>
  3224.  
  3225.                     <xsl:if test="string-length($prefixVersionDot)>0">
  3226.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0">
  3227.                         <xsl:call-template name="templ_prop_Space"/>
  3228.                       </xsl:if>
  3229.  
  3230.                       <xsl:value-of select="$prefixVersionDot"/>
  3231.                     </xsl:if>
  3232.  
  3233.  
  3234.                     <xsl:if test="string-length($dateDot)>0">
  3235.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($versionDot)>0">
  3236.                         <xsl:call-template name="templ_prop_Space"/>
  3237.                       </xsl:if>
  3238.  
  3239.                       <xsl:value-of select="$dateDot"/>
  3240.                     </xsl:if>
  3241.  
  3242.                     <xsl:if test="string-length($prodDot)>0">
  3243.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0">
  3244.                         <xsl:call-template name="templ_prop_Space"/>
  3245.                       </xsl:if>
  3246.  
  3247.                       <xsl:value-of select="$prodDot"/>
  3248.                     </xsl:if>
  3249.  
  3250.                     <xsl:if test="string-length($tempDaU)>0">
  3251.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($versionDot)>0 or string-length($dateDot)>0 or string-length($prodDot)>0">
  3252.                         <xsl:call-template name="templ_prop_Space"/>
  3253.                       </xsl:if>
  3254.  
  3255.                       <xsl:value-of select="$tempDaU"/>
  3256.                     </xsl:if>
  3257.  
  3258.                   </xsl:when>
  3259.  
  3260.  
  3261.  
  3262.  
  3263.                   <xsl:when test="b:SourceType='Patent'">
  3264.  
  3265.  
  3266.  
  3267.                     <xsl:if test="string-length($inventorLFDot)>0">
  3268.                       <xsl:value-of select="$inventorLFDot"/>
  3269.                     </xsl:if>
  3270.  
  3271.  
  3272.                     <xsl:if test="string-length($titleDot)>0">
  3273.                       <xsl:if test="string-length($inventorLFDot)>0">
  3274.                         <xsl:call-template name="templ_prop_Space"/>
  3275.                       </xsl:if>
  3276.  
  3277.                       <xsl:value-of select="$titleDot"/>
  3278.                     </xsl:if>
  3279.  
  3280.                     <xsl:if test="string-length($prefixEditorDot)>0">
  3281.                       <xsl:if test="string-length($inventorLFDot)>0 or string-length($titleDot)>0">
  3282.                         <xsl:call-template name="templ_prop_Space"/>
  3283.                       </xsl:if>
  3284.  
  3285.                       <xsl:value-of select="$prefixEditorDot"/>
  3286.                     </xsl:if>
  3287.  
  3288.                     <xsl:if test="string-length($prefixTranslatorDot)>0">
  3289.                       <xsl:if test="string-length($inventorLFDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0">
  3290.                         <xsl:call-template name="templ_prop_Space"/>
  3291.                       </xsl:if>
  3292.  
  3293.                       <xsl:value-of select="$prefixTranslatorDot"/>
  3294.                     </xsl:if>
  3295.  
  3296.                     <xsl:if test="string-length($tempCP)>0">
  3297.                       <xsl:if test="string-length($inventorLFDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0">
  3298.                         <xsl:call-template name="templ_prop_Space"/>
  3299.                       </xsl:if>
  3300.  
  3301.                       <xsl:value-of select="$tempCP"/>
  3302.                     </xsl:if>
  3303.  
  3304.                     <xsl:if test="string-length($dateDot)>0">
  3305.                       <xsl:if test="string-length($inventorLFDot)>0 or string-length($titleDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0 or string-length($tempCP)>0">
  3306.                         <xsl:call-template name="templ_prop_Space"/>
  3307.                       </xsl:if>
  3308.  
  3309.                       <xsl:value-of select="$dateDot"/>
  3310.                     </xsl:if>
  3311.  
  3312.                   </xsl:when>
  3313.  
  3314.  
  3315.  
  3316.                   <xsl:when test="b:SourceType='Case'">
  3317.  
  3318.  
  3319.                     <xsl:if test="string-length($titleDot)>0">
  3320.                       <xsl:value-of select="$titleDot"/>
  3321.                     </xsl:if>
  3322.  
  3323.                     <xsl:if test="string-length($prefixCaseNoDot)>0">
  3324.                       <xsl:if test="string-length($titleDot)>0">
  3325.                         <xsl:call-template name="templ_prop_Space"/>
  3326.                       </xsl:if>
  3327.  
  3328.                       <xsl:value-of select="$prefixCaseNoDot"/>
  3329.                     </xsl:if>
  3330.  
  3331.  
  3332.                     <xsl:if test="string-length($courtDot)>0">
  3333.                       <xsl:if test="string-length($titleDot)>0 or string-length($prefixCaseNoDot)>0">
  3334.                         <xsl:call-template name="templ_prop_Space"/>
  3335.                       </xsl:if>
  3336.  
  3337.                       <xsl:value-of select="$courtDot"/>
  3338.                     </xsl:if>
  3339.  
  3340.                     <xsl:if test="string-length($tempCD)>0">
  3341.                       <xsl:if test="string-length($titleDot)>0 or string-length($prefixCaseNoDot)>0 or string-length($courtDot)>0">
  3342.                         <xsl:call-template name="templ_prop_Space"/>
  3343.                       </xsl:if>
  3344.  
  3345.                       <xsl:value-of select="$tempCD"/>
  3346.                     </xsl:if>
  3347.  
  3348.                   </xsl:when>
  3349.  
  3350.  
  3351.  
  3352.                   <xsl:when test="b:SourceType='Misc'">
  3353.  
  3354.                     <xsl:if test="string-length($authorDot)>0">
  3355.                       <xsl:value-of select="$authorDot"/>
  3356.                     </xsl:if>
  3357.  
  3358.                     <xsl:if test="string-length($titleDot)>0">
  3359.                       <xsl:if test="string-length($authorDot)>0">
  3360.                         <xsl:call-template name="templ_prop_Space"/>
  3361.                       </xsl:if>
  3362.  
  3363.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  3364.                       <xsl:value-of select="$titleDot"/>
  3365.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  3366.                     </xsl:if>
  3367.  
  3368.                     <xsl:if test="string-length($publicationTitleDot)>0">
  3369.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  3370.                         <xsl:call-template name="templ_prop_Space"/>
  3371.                       </xsl:if>
  3372.  
  3373.                       <u>
  3374.                         <xsl:value-of select="$publicationTitleDot"/>
  3375.                       </u>
  3376.                     </xsl:if>
  3377.  
  3378.                     <xsl:if test="string-length($prefixVolumeDot)>0">
  3379.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0">
  3380.                         <xsl:call-template name="templ_prop_Space"/>
  3381.                       </xsl:if>
  3382.  
  3383.                       <xsl:value-of select="$prefixVolumeDot"/>
  3384.                     </xsl:if>
  3385.  
  3386.  
  3387.                     <xsl:if test="string-length($issueDot)>0">
  3388.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0">
  3389.                         <xsl:call-template name="templ_prop_Space"/>
  3390.                       </xsl:if>
  3391.  
  3392.                       <xsl:value-of select="$issueDot"/>
  3393.                     </xsl:if>
  3394.  
  3395.                     <xsl:if test="string-length($prefixEditorDot)>0">
  3396.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0 or string-length($issueDot)>0">
  3397.                         <xsl:call-template name="templ_prop_Space"/>
  3398.                       </xsl:if>
  3399.  
  3400.                       <xsl:value-of select="$prefixEditorDot"/>
  3401.                     </xsl:if>
  3402.  
  3403.  
  3404.                     <xsl:if test="string-length($prefixTranslatorDot)>0">
  3405.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0 or string-length($issueDot)>0 or string-length($prefixEditorDot)>0">
  3406.                         <xsl:call-template name="templ_prop_Space"/>
  3407.                       </xsl:if>
  3408.  
  3409.                       <xsl:value-of select="$prefixTranslatorDot"/>
  3410.                     </xsl:if>
  3411.  
  3412.                     <xsl:if test="string-length($prefixCompilerDot)>0">
  3413.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0 or string-length($issueDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0">
  3414.                         <xsl:call-template name="templ_prop_Space"/>
  3415.                       </xsl:if>
  3416.  
  3417.                       <xsl:value-of select="$prefixCompilerDot"/>
  3418.                     </xsl:if>
  3419.  
  3420.  
  3421.                     <xsl:if test="string-length($tempCPD)>0">
  3422.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0 or string-length($issueDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0 or string-length($prefixCompilerDot)>0">
  3423.                         <xsl:call-template name="templ_prop_Space"/>
  3424.                       </xsl:if>
  3425.  
  3426.                       <xsl:value-of select="$tempCPD"/>
  3427.                     </xsl:if>
  3428.  
  3429.                     <xsl:if test="string-length($pagesDot)>0">
  3430.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($prefixVolumeDot)>0 or string-length($issueDot)>0 or string-length($prefixEditorDot)>0 or string-length($prefixTranslatorDot)>0 or string-length($prefixCompilerDot)>0 or string-length($tempCPD)>0">
  3431.                         <xsl:call-template name="templ_prop_Space"/>
  3432.                       </xsl:if>
  3433.  
  3434.                       <xsl:value-of select="$pagesDot"/>
  3435.                     </xsl:if>
  3436.  
  3437.  
  3438.                   </xsl:when>
  3439.  
  3440.  
  3441.  
  3442.  
  3443.                   <xsl:when test="b:SourceType='ElectronicSource'">
  3444.  
  3445.                     <xsl:variable name="lfAuthor">
  3446.                       <xsl:if test="string-length($authorDot)>0">
  3447.                         <xsl:value-of select="$authorDot"/>
  3448.                       </xsl:if>
  3449.  
  3450.  
  3451.                       <xsl:if test="string-length($authorDot)=0 and string-length($sufixEditorLFDot)>0">
  3452.                         <xsl:value-of select="$sufixEditorLFDot"/>
  3453.                       </xsl:if>
  3454.  
  3455.                       <xsl:if test="string-length($authorDot)=0 and string-length($sufixEditorLFDot)=0 and string-length($sufixTranslatorLFDot)>0">
  3456.                         <xsl:value-of select="$sufixTranslatorLFDot"/>
  3457.                       </xsl:if>
  3458.  
  3459.                       <xsl:if test="string-length($authorDot)=0 and string-length($sufixEditorLFDot)=0 and string-length($sufixTranslatorLFDot)=0 and string-length($sufixCompilerLFDot)>0">
  3460.                         <xsl:value-of select="$sufixCompilerLFDot"/>
  3461.                       </xsl:if>
  3462.                     </xsl:variable>
  3463.  
  3464.                     <xsl:value-of select="$lfAuthor"/>
  3465.  
  3466.                     <xsl:if test="string-length($titleDot)>0 and string-length($publicationTitleDot)>0">
  3467.                       <xsl:if test="string-length($lfAuthor)>0">
  3468.                         <xsl:call-template name="templ_prop_Space"/>
  3469.                       </xsl:if>
  3470.  
  3471.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  3472.                       <xsl:value-of select="$titleDot"/>
  3473.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  3474.                     </xsl:if>
  3475.  
  3476.                     <xsl:if test="string-length($titleDot)>0 and string-length($publicationTitleDot)=0">
  3477.                       <xsl:if test="string-length($lfAuthor)>0">
  3478.                         <xsl:call-template name="templ_prop_Space"/>
  3479.                       </xsl:if>
  3480.  
  3481.                       <u>
  3482.                         <xsl:value-of select="$titleDot"/>
  3483.                       </u>
  3484.                     </xsl:if>
  3485.  
  3486.                     <xsl:if test="string-length($publicationTitleDot)>0">
  3487.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0">
  3488.                         <xsl:call-template name="templ_prop_Space"/>
  3489.                       </xsl:if>
  3490.  
  3491.                       <u>
  3492.                         <xsl:value-of select="$publicationTitleDot"/>
  3493.                       </u>
  3494.                     </xsl:if>
  3495.  
  3496.                     <xsl:if test="string-length($editionDot)>0">
  3497.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0">
  3498.                         <xsl:call-template name="templ_prop_Space"/>
  3499.                       </xsl:if>
  3500.  
  3501.                       <xsl:value-of select="$editionDot"/>
  3502.                     </xsl:if>
  3503.  
  3504.                     <xsl:if test="string-length($prefixVolumeDot)>0">
  3505.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0">
  3506.                         <xsl:call-template name="templ_prop_Space"/>
  3507.                       </xsl:if>
  3508.  
  3509.                       <xsl:value-of select="$prefixVolumeDot"/>
  3510.                     </xsl:if>
  3511.  
  3512.                     <xsl:if test="string-length($mediumDot)>0">
  3513.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0">
  3514.                         <xsl:call-template name="templ_prop_Space"/>
  3515.                       </xsl:if>
  3516.  
  3517.                       <xsl:value-of select="$mediumDot"/>
  3518.                     </xsl:if>
  3519.  
  3520.  
  3521.                     <xsl:if test="string-length($authorDot)>0 and string-length($prefixEditorDot)>0">
  3522.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0 or string-length($mediumDot)>0">
  3523.                         <xsl:call-template name="templ_prop_Space"/>
  3524.                       </xsl:if>
  3525.  
  3526.                       <xsl:value-of select="$prefixEditorDot"/>
  3527.                     </xsl:if>
  3528.  
  3529.                     <xsl:if test="string-length($prefixTranslatorDot)>0 and (string-length($authorDot)>0 or (string-length($authorDot)=0 and  string-length($sufixEditorLFDot)>0 ))">
  3530.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0 or string-length($mediumDot)>0">
  3531.                         <xsl:call-template name="templ_prop_Space"/>
  3532.                       </xsl:if>
  3533.  
  3534.                       <xsl:value-of select="$prefixTranslatorDot"/>
  3535.                     </xsl:if>
  3536.  
  3537.                     <xsl:if test="string-length($prefixCompilerDot)>0 and (string-length($authorDot)>0 or (string-length($authorDot)=0 and  (string-length($sufixEditorLFDot)>0 or string-length($sufixTranslatorLFDot)>0)))">
  3538.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0 or string-length($mediumDot)>0">
  3539.                         <xsl:call-template name="templ_prop_Space"/>
  3540.                       </xsl:if>
  3541.  
  3542.                       <xsl:value-of select="$prefixCompilerDot"/>
  3543.                     </xsl:if>
  3544.  
  3545.                     <xsl:if test="string-length($prefixProdDot)>0">
  3546.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0 or string-length($mediumDot)>0">
  3547.                         <xsl:call-template name="templ_prop_Space"/>
  3548.                       </xsl:if>
  3549.  
  3550.                       <xsl:value-of select="$prefixProdDot"/>
  3551.                     </xsl:if>
  3552.  
  3553.                     <xsl:if test="string-length($tempCPD)>0">
  3554.                       <xsl:if test="string-length($lfAuthor)>0 or string-length($titleDot)>0 or string-length($publicationTitleDot)>0 or string-length($editionDot)>0 or string-length($prefixVolumeDot)>0 or string-length($mediumDot)>0 or string-length($prefixProdDot)>0">
  3555.                         <xsl:call-template name="templ_prop_Space"/>
  3556.                       </xsl:if>
  3557.  
  3558.                       <xsl:value-of select="$tempCPD"/>
  3559.                     </xsl:if>
  3560.  
  3561.  
  3562.  
  3563.                   </xsl:when>
  3564.  
  3565.  
  3566.                   <xsl:when test="b:SourceType='ArticleInAPeriodical'">
  3567.  
  3568.  
  3569.                     <xsl:if test="string-length($authorDot)>0">
  3570.                       <xsl:value-of select="$authorDot"/>
  3571.                     </xsl:if>
  3572.  
  3573.  
  3574.                     <xsl:if test="string-length($titleDot)>0">
  3575.                       <xsl:if test="string-length($authorDot)>0">
  3576.                         <xsl:call-template name="templ_prop_Space"/>
  3577.                       </xsl:if>
  3578.  
  3579.                       <xsl:call-template name="templ_prop_OpenQuote"/>
  3580.  
  3581.                       <xsl:value-of select="$titleDot"/>
  3582.  
  3583.                       <xsl:call-template name="templ_prop_CloseQuote"/>
  3584.                     </xsl:if>
  3585.  
  3586.                     <xsl:if test="string-length($periodicalTitle)>0">
  3587.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0">
  3588.                         <xsl:call-template name="templ_prop_Space"/>
  3589.                       </xsl:if>
  3590.  
  3591.                       <u>
  3592.                         <xsl:value-of select="$periodicalTitle"/>
  3593.                       </u>
  3594.                     </xsl:if>
  3595.  
  3596.                     <xsl:if test="string-length($tempDEP)>0">
  3597.                       <xsl:if test="string-length($authorDot)>0 or string-length($titleDot)>0 or string-length($periodicalTitle)>0">
  3598.                         <xsl:call-template name="templ_prop_Space"/>
  3599.                       </xsl:if>
  3600.  
  3601.                       <xsl:value-of select="$tempDEP"/>
  3602.                     </xsl:if>
  3603.  
  3604.                   </xsl:when>
  3605.  
  3606.  
  3607.                   <xsl:when test="b:SourceType='Film'">
  3608.  
  3609.                     <xsl:if test="string-length($titleDot)>0">
  3610.                       <u>
  3611.                         <xsl:value-of select="$titleDot"/>
  3612.                       </u>
  3613.                     </xsl:if>
  3614.  
  3615.                     <xsl:if test="string-length($writerDot)>0">
  3616.                       <xsl:if test="string-length($titleDot)>0">
  3617.                         <xsl:call-template name="templ_prop_Space"/>
  3618.                       </xsl:if>
  3619.                       <xsl:variable name="str_ByCap">
  3620.                         <xsl:call-template name="templ_str_ByCap"/>
  3621.                       </xsl:variable>
  3622.  
  3623.                       <xsl:call-template name="StringFormatDot">
  3624.                         <xsl:with-param name="format" select="$str_ByCap"/>
  3625.                         <xsl:with-param name="parameters">
  3626.                           <t:params>
  3627.                             <t:param>
  3628.                               <xsl:value-of select="$writer"/>
  3629.                             </t:param>
  3630.                           </t:params>
  3631.                         </xsl:with-param>
  3632.                       </xsl:call-template>
  3633.                     </xsl:if>
  3634.  
  3635.                     <xsl:if test="string-length($prefixDirectorDot)>0">
  3636.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0">
  3637.                         <xsl:call-template name="templ_prop_Space"/>
  3638.                       </xsl:if>
  3639.  
  3640.                       <xsl:value-of select="$prefixDirectorDot"/>
  3641.                     </xsl:if>
  3642.  
  3643.  
  3644.                     <xsl:if test="string-length($prefixPerformerDot)>0">
  3645.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0">
  3646.                         <xsl:call-template name="templ_prop_Space"/>
  3647.                       </xsl:if>
  3648.  
  3649.                       <xsl:value-of select="$prefixPerformerDot"/>
  3650.                     </xsl:if>
  3651.  
  3652.  
  3653.                     <xsl:if test="string-length($prefixProdDot)>0">
  3654.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0 or string-length($prefixPerformerDot)>0">
  3655.                         <xsl:call-template name="templ_prop_Space"/>
  3656.                       </xsl:if>
  3657.  
  3658.                       <xsl:value-of select="$prefixProdDot"/>
  3659.                     </xsl:if>
  3660.  
  3661.  
  3662.                     <xsl:if test="string-length($tempDY)>0">
  3663.                       <xsl:if test="string-length($titleDot)>0 or string-length($writerDot)>0 or string-length($prefixDirectorDot)>0 or string-length($prefixProdDot)>0 or string-length($prefixPerformerDot)>0">
  3664.                         <xsl:call-template name="templ_prop_Space"/>
  3665.                       </xsl:if>
  3666.  
  3667.                       <xsl:value-of select="$tempDY"/>
  3668.                     </xsl:if>
  3669.  
  3670.                   </xsl:when>
  3671.  
  3672.  
  3673.                   <xsl:when test="b:SourceType='Interview'">
  3674.  
  3675.                     <xsl:choose>
  3676.                       
  3677.                       <xsl:when test="string-length($broadcaster)>0">
  3678.  
  3679.                         <xsl:if test="string-length($intervieweeLFDot)>0">
  3680.                           <xsl:value-of select="$intervieweeLFDot"/>
  3681.                         </xsl:if>
  3682.  
  3683.                         <xsl:choose>
  3684.                           <xsl:when test="string-length($interviewTitleDot)=0 and string-length($broadcastTitleDot)=0 and string-length($interviewerDot)=0">
  3685.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3686.                               <xsl:call-template name="templ_prop_Space"/>
  3687.                             </xsl:if>
  3688.  
  3689.                             <xsl:call-template name="templ_str_InterviewCap"/>
  3690.                             <xsl:call-template name="templ_prop_Dot"/>
  3691.                           </xsl:when>
  3692.  
  3693.  
  3694.                           <xsl:when test="string-length($interviewTitleDot)=0 and string-length($broadcastTitleDot)=0 and string-length($interviewerDot)>0">
  3695.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3696.                               <xsl:call-template name="templ_prop_Space"/>
  3697.                             </xsl:if>
  3698.                             <xsl:variable name="str_InterviewWithCap">
  3699.                               <xsl:call-template name="templ_str_InterviewWithCap"/>
  3700.                             </xsl:variable>
  3701.  
  3702.                             <xsl:call-template name="StringFormatDot">
  3703.                               <xsl:with-param name="format" select="$str_InterviewWithCap"/>
  3704.                               <xsl:with-param name="parameters">
  3705.                                 <t:params>
  3706.                                   <t:param>
  3707.                                     <xsl:value-of select="$interviewer"/>
  3708.                                   </t:param>
  3709.                                 </t:params>
  3710.                               </xsl:with-param>
  3711.                             </xsl:call-template>
  3712.                           </xsl:when>
  3713.  
  3714.                           <xsl:when test="string-length($interviewTitleDot)=0 and string-length($broadcastTitleDot)>0 and string-length($interviewerDot)=0">
  3715.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3716.                               <xsl:call-template name="templ_prop_Space"/>
  3717.                             </xsl:if>
  3718.  
  3719.                             <xsl:call-template name="templ_str_InterviewCap"/>
  3720.                             <xsl:call-template name="templ_prop_Dot"/>
  3721.                           </xsl:when>
  3722.  
  3723.                           <xsl:when test="string-length($interviewTitleDot)=0 and string-length($broadcastTitleDot)>0 and string-length($interviewerDot)>0">
  3724.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3725.                               <xsl:call-template name="templ_prop_Space"/>
  3726.                             </xsl:if>
  3727.  
  3728.                             <xsl:variable name="str_InterviewWithCap">
  3729.                               <xsl:call-template name="templ_str_InterviewWithCap"/>
  3730.                             </xsl:variable>
  3731.  
  3732.                             <xsl:call-template name="StringFormatDot">
  3733.                               <xsl:with-param name="format" select="$str_InterviewWithCap"/>
  3734.                               <xsl:with-param name="parameters">
  3735.                                 <t:params>
  3736.                                   <t:param>
  3737.                                     <xsl:value-of select="$interviewer"/>
  3738.                                   </t:param>
  3739.                                 </t:params>
  3740.                               </xsl:with-param>
  3741.                             </xsl:call-template>
  3742.                           </xsl:when>
  3743.  
  3744.                           <xsl:when test="string-length($interviewTitleDot)>0 and string-length($broadcastTitleDot)=0 and string-length($interviewerDot)=0">
  3745.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3746.                               <xsl:call-template name="templ_prop_Space"/>
  3747.                             </xsl:if>
  3748.  
  3749.                             <u>
  3750.                               <xsl:value-of select="$interviewTitleDot"/>
  3751.                             </u>
  3752.                           </xsl:when>
  3753.  
  3754.                           <xsl:when test="string-length($interviewTitleDot)>0 and string-length($broadcastTitleDot)=0 and string-length($interviewerDot)>0">
  3755.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3756.                               <xsl:call-template name="templ_prop_Space"/>
  3757.                             </xsl:if>
  3758.  
  3759.                             <xsl:variable name="str_WithUnCap">
  3760.                               <xsl:call-template name="templ_str_WithUnCap"/>
  3761.                             </xsl:variable>
  3762.  
  3763.                             <xsl:call-template name="StringFormatDot">
  3764.                               <xsl:with-param name="format" select="$str_WithUnCap"/>
  3765.                               <xsl:with-param name="parameters">
  3766.                                 <t:params>
  3767.                                   <t:param>
  3768.                                     <u>
  3769.                                       <xsl:value-of select="$interviewTitleDot"/>
  3770.                                     </u>
  3771.                                   </t:param>
  3772.                                   <t:param>
  3773.                                     <xsl:value-of select="$interviewerDot"/>
  3774.                                   </t:param>
  3775.                                 </t:params>
  3776.                               </xsl:with-param>
  3777.                             </xsl:call-template>
  3778.                           </xsl:when>
  3779.  
  3780.                           <xsl:when test="string-length($interviewTitleDot)>0 and string-length($broadcastTitleDot)>0 and string-length($interviewerDot)=0">
  3781.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3782.                               <xsl:call-template name="templ_prop_Space"/>
  3783.                             </xsl:if>
  3784.  
  3785.                             <xsl:call-template name="templ_prop_OpenQuote"/>
  3786.                             <xsl:value-of select="$interviewTitle"/>
  3787.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  3788.                           </xsl:when>
  3789.  
  3790.                           <xsl:when test="string-length($interviewTitleDot)>0 and string-length($broadcastTitleDot)>0 and string-length($interviewerDot)>0">
  3791.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3792.                               <xsl:call-template name="templ_prop_Space"/>
  3793.                             </xsl:if>
  3794.  
  3795.                             <xsl:variable name="str_WithUnCap">
  3796.                               <xsl:call-template name="templ_str_WithUnCap"/>
  3797.                             </xsl:variable>
  3798.  
  3799.                             <xsl:call-template name="StringFormatDot">
  3800.                               <xsl:with-param name="format" select="$str_WithUnCap"/>
  3801.                               <xsl:with-param name="parameters">
  3802.                                 <t:params>
  3803.                                   <t:param>
  3804.                                     <xsl:call-template name="templ_prop_OpenQuote"/>
  3805.                                     <xsl:value-of select="$interviewTitle"/>
  3806.                                     <xsl:call-template name="templ_prop_CloseQuote"/>
  3807.                                   </t:param>
  3808.                                   <t:param>
  3809.                                     <xsl:value-of select="$interviewerDot"/>
  3810.                                   </t:param>
  3811.                                 </t:params>
  3812.                               </xsl:with-param>
  3813.                             </xsl:call-template>
  3814.                           </xsl:when>
  3815.                         </xsl:choose>
  3816.  
  3817.                         <xsl:if test="string-length($broadcastTitleDot)>0">
  3818.                           <xsl:call-template name="templ_prop_Space"/>
  3819.  
  3820.                           <u>
  3821.                             <xsl:value-of select="$broadcastTitleDot"/>
  3822.                           </u>
  3823.                         </xsl:if>
  3824.  
  3825.  
  3826.                         <xsl:if test="string-length($broadcasterDot)>0">
  3827.                           <xsl:call-template name="templ_prop_Space"/>
  3828.                           <xsl:value-of select="$broadcasterDot"/>
  3829.                         </xsl:if>
  3830.  
  3831.                         <xsl:if test="string-length($tempSC)>0">
  3832.                           <xsl:call-template name="templ_prop_Space"/>
  3833.                           <xsl:value-of select="$tempSC"/>
  3834.                         </xsl:if>
  3835.  
  3836.                         <xsl:if test="string-length($dateDot)>0">
  3837.                           <xsl:call-template name="templ_prop_Space"/>
  3838.                           <xsl:value-of select="$dateDot"/>
  3839.                         </xsl:if>
  3840.  
  3841.                       </xsl:when>
  3842.  
  3843.                       
  3844.                       <xsl:otherwise>
  3845.  
  3846.  
  3847.                         <xsl:if test="string-length($intervieweeLFDot)>0">
  3848.                           <xsl:value-of select="$intervieweeLFDot"/>
  3849.                         </xsl:if>
  3850.  
  3851.                         <xsl:if test="string-length($interviewTitle)>0">
  3852.  
  3853.                           <xsl:if test="string-length($broadcastTitleDot)>0">
  3854.                             <xsl:if test="string-length($intervieweeLFDot)>0">
  3855.                               <xsl:call-template name="templ_prop_Space"/>
  3856.                             </xsl:if>
  3857.  
  3858.                             <xsl:call-template name="templ_prop_OpenQuote"/>
  3859.                             <xsl:value-of select="$interviewTitleDot"/>
  3860.                             <xsl:call-template name="templ_prop_CloseQuote"/>
  3861.                           </xsl:if>
  3862.  
  3863.  
  3864.                           <xsl:if test="string-length($broadcastTitleDot)=0">
  3865.                             <xsl:if test="string-length($intervieweeLFDot)>0 or string-length($broadcastTitleDot)>0">
  3866.                               <xsl:call-template name="templ_prop_Space"/>
  3867.                             </xsl:if>
  3868.  
  3869.                             <u>
  3870.                               <xsl:value-of select="$interviewTitle"/>
  3871.                             </u>
  3872.                           </xsl:if>
  3873.                         </xsl:if>
  3874.  
  3875.                         <xsl:if test="string-length($interviewTitleDot)=0">
  3876.                           <xsl:if test="string-length($intervieweeLFDot)>0">
  3877.                             <xsl:call-template name="templ_prop_Space"/>
  3878.                           </xsl:if>
  3879.                           <xsl:call-template name="templ_str_InterviewCap"/>
  3880.                           <xsl:call-template name="templ_prop_Dot"/>
  3881.                         </xsl:if>
  3882.  
  3883.  
  3884.  
  3885.  
  3886.                         <xsl:if test="string-length($broadcastTitleDot)>0">
  3887.                           <xsl:call-template name="templ_prop_Space"/>
  3888.  
  3889.                           <u>
  3890.                             <xsl:value-of select="$broadcastTitleDot"/>
  3891.                           </u>
  3892.                         </xsl:if>
  3893.  
  3894.                         <xsl:if test="string-length($interviewerDot)>0">
  3895.                           <xsl:call-template name="templ_prop_Space"/>
  3896.  
  3897.                           <xsl:value-of select="$interviewerDot"/>
  3898.                         </xsl:if>
  3899.  
  3900.  
  3901.                         <xsl:if test="string-length($prefixEditorDot)>0">
  3902.                           <xsl:call-template name="templ_prop_Space"/>
  3903.  
  3904.                           <xsl:value-of select="$prefixEditorDot"/>
  3905.                         </xsl:if>
  3906.  
  3907.                         <xsl:if test="string-length($prefixTranslatorDot)>0">
  3908.                           <xsl:call-template name="templ_prop_Space"/>
  3909.  
  3910.                           <xsl:value-of select="$prefixTranslatorDot"/>
  3911.                         </xsl:if>
  3912.  
  3913.  
  3914.  
  3915.                         <xsl:if test="string-length($tempCPD)>0">
  3916.                           <xsl:call-template name="templ_prop_Space"/>
  3917.  
  3918.                           <xsl:value-of select="$tempCPD"/>
  3919.                         </xsl:if>
  3920.  
  3921.                         <xsl:if test="string-length($pagesDot)>0">
  3922.                           <xsl:call-template name="templ_prop_Space"/>
  3923.  
  3924.                           <xsl:value-of select="$pagesDot"/>
  3925.                         </xsl:if>
  3926.  
  3927.  
  3928.                       </xsl:otherwise>
  3929.                     </xsl:choose>
  3930.  
  3931.  
  3932.                   </xsl:when>
  3933.  
  3934.  
  3935.                   
  3936.  
  3937.  
  3938.  
  3939.  
  3940.                 </xsl:choose>
  3941.               </xsl:element>
  3942.               
  3943.             </xsl:for-each>
  3944.           </body>
  3945.         </html>
  3946.       </xsl:when>
  3947.     </xsl:choose>
  3948.   </xsl:template>
  3949.  
  3950.  
  3951.   <xsl:template name="sortedList">
  3952.     <xsl:param name="sourceRoot"/>
  3953.     
  3954.     <xsl:apply-templates select="msxsl:node-set($sourceRoot)/*">
  3955.       
  3956.       <xsl:sort select="b:Author/b:Main/b:NameList/b:Person[1]/b:Last" />
  3957.       
  3958.       <xsl:sort select="b:Author/b:Main/b:NameList/b:Person[1]/b:First" />
  3959.       
  3960.       <xsl:sort select="b:Author/b:Main/b:NameList/b:Person[1]/b:Middle"/>
  3961.       
  3962.     </xsl:apply-templates>
  3963.     
  3964.   </xsl:template>
  3965.  
  3966.  
  3967.   <xsl:template match="*">
  3968.  
  3969.     <xsl:element name="{name()}" namespace="{namespace-uri()}">
  3970.       <xsl:for-each select="@*">
  3971.         <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  3972.           <xsl:value-of select="."/>
  3973.         </xsl:attribute>
  3974.       </xsl:for-each>
  3975.       <xsl:apply-templates>
  3976.         <xsl:sort select="b:Author/b:Main/b:NameList/b:Person[1]/b:Last"/>
  3977.         <xsl:sort select="b:Author/b:Main/b:NameList/b:Person[1]/b:First"/>
  3978.       </xsl:apply-templates>
  3979.     </xsl:element>
  3980.   </xsl:template>
  3981.  
  3982.   <xsl:template match="text()">
  3983.     <xsl:value-of select="."/>
  3984.   </xsl:template>
  3985.  
  3986.   <xsl:template name="formatMainAuthor">
  3987.     <xsl:call-template name="formatNameCore">
  3988.       <xsl:with-param name="FML">
  3989.         <xsl:call-template name="templ_prop_MLA_MainAuthor_FML"/>
  3990.       </xsl:with-param>
  3991.       <xsl:with-param name="FM">
  3992.         <xsl:call-template name="templ_prop_MLA_MainAuthor_FM"/>
  3993.       </xsl:with-param>
  3994.       <xsl:with-param name="ML">
  3995.         <xsl:call-template name="templ_prop_MLA_MainAuthor_ML"/>
  3996.       </xsl:with-param>
  3997.       <xsl:with-param name="FL">
  3998.         <xsl:call-template name="templ_prop_MLA_MainAuthor_FL"/>
  3999.       </xsl:with-param>
  4000.       <xsl:with-param name="upperLast">no</xsl:with-param>
  4001.       <xsl:with-param name="withDot">no</xsl:with-param>
  4002.     </xsl:call-template>
  4003.   </xsl:template>
  4004.  
  4005.  
  4006.   <xsl:template name="formatSecondaryName">
  4007.     <xsl:call-template name="formatNameCore">
  4008.       <xsl:with-param name="FML">
  4009.         <xsl:call-template name="templ_prop_MLA_SecondaryAuthors_FML"/>
  4010.       </xsl:with-param>
  4011.       <xsl:with-param name="FM">
  4012.         <xsl:call-template name="templ_prop_MLA_SecondaryAuthors_FM"/>
  4013.       </xsl:with-param>
  4014.       <xsl:with-param name="ML">
  4015.         <xsl:call-template name="templ_prop_MLA_SecondaryAuthors_ML"/>
  4016.       </xsl:with-param>
  4017.       <xsl:with-param name="FL">
  4018.         <xsl:call-template name="templ_prop_MLA_SecondaryAuthors_FL"/>
  4019.       </xsl:with-param>
  4020.       <xsl:with-param name="upperLast">no</xsl:with-param>
  4021.       <xsl:with-param name="withDot">no</xsl:with-param>
  4022.     </xsl:call-template>
  4023.   </xsl:template>
  4024.  
  4025.  
  4026.   <xsl:template name="formatOtherAuthors">
  4027.     <xsl:call-template name="formatNameCore">
  4028.       <xsl:with-param name="FML">
  4029.         <xsl:call-template name="templ_prop_MLA_OtherAuthors_FML"/>
  4030.       </xsl:with-param>
  4031.       <xsl:with-param name="FM">
  4032.         <xsl:call-template name="templ_prop_MLA_OtherAuthors_FM"/>
  4033.       </xsl:with-param>
  4034.       <xsl:with-param name="ML">
  4035.         <xsl:call-template name="templ_prop_MLA_OtherAuthors_ML"/>
  4036.       </xsl:with-param>
  4037.       <xsl:with-param name="FL">
  4038.         <xsl:call-template name="templ_prop_MLA_OtherAuthors_FL"/>
  4039.       </xsl:with-param>
  4040.       <xsl:with-param name="upperLast">no</xsl:with-param>
  4041.       <xsl:with-param name="withDot">no</xsl:with-param>
  4042.     </xsl:call-template>
  4043.   </xsl:template>
  4044.  
  4045.  
  4046.   <xsl:template name="formatPersonSeperator">
  4047.  
  4048.     <xsl:choose>
  4049.       <xsl:when test="count(../b:Person) > 3 and position() = 1">
  4050.         <xsl:call-template name="templ_prop_ListSeparator"/>
  4051.         <xsl:call-template name="templ_str_AndOthersUnCap"/>
  4052.       </xsl:when>
  4053.       <xsl:when test="count(../b:Person) > 3 and position() >= 2">
  4054.       </xsl:when>
  4055.       <xsl:when test="3 >= count(../b:Person) and position() = count(../b:Person) - 1">
  4056.         <xsl:call-template name="templ_prop_Space"/>
  4057.         <xsl:call-template name="templ_str_AndUnCap"/>
  4058.         <xsl:call-template name="templ_prop_Space"/>
  4059.       </xsl:when>
  4060.       <xsl:when test="position() = count(../b:Person)">
  4061.         <xsl:text></xsl:text>
  4062.       </xsl:when>
  4063.       <xsl:when test="3 > position()">
  4064.         <xsl:call-template name="templ_prop_ListSeparator"/>
  4065.       </xsl:when>
  4066.     </xsl:choose>
  4067.   </xsl:template>
  4068.  
  4069.   <xsl:template name="formatPersonsAuthor">
  4070.     <xsl:for-each select="b:NameList/b:Person">
  4071.       <xsl:if test="position() = 1">
  4072.         <xsl:call-template name="formatMainAuthor"/>
  4073.       </xsl:if>
  4074.       <xsl:if test="3 >= count(../b:Person) and 3 >= position() and position() != 1">
  4075.         <xsl:call-template name="formatOtherAuthors"/>
  4076.       </xsl:if>
  4077.       <xsl:call-template name="formatPersonSeperator"/>
  4078.     </xsl:for-each>
  4079.   </xsl:template>
  4080.  
  4081.   <xsl:template name="formatPersons">
  4082.     <xsl:for-each select="b:NameList/b:Person">
  4083.       <xsl:if test="(count(../b:Person) > 3 and 1 = position()) or (3 >= count(../b:Person))">
  4084.         <xsl:call-template name="formatSecondaryName"/>
  4085.       </xsl:if>
  4086.       <xsl:call-template name="formatPersonSeperator"/>
  4087.     </xsl:for-each>
  4088.   </xsl:template>
  4089.  
  4090.   <xsl:template name="formatAuthor">
  4091.     <xsl:for-each select="b:Author/b:Author">
  4092.       <xsl:call-template name="formatPersonsAuthor"/>
  4093.     </xsl:for-each>
  4094.   </xsl:template>
  4095.  
  4096.   <xsl:template name="formatMain">
  4097.     <xsl:for-each select="b:Author/b:Main">
  4098.       <xsl:call-template name="formatPersonsAuthor"/>
  4099.     </xsl:for-each>
  4100.   </xsl:template>
  4101.  
  4102.  
  4103.   <xsl:template name="formatBookAuthor">
  4104.     <xsl:for-each select="b:Author/b:BookAuthor">
  4105.       <xsl:call-template name="formatPersonsAuthor"/>
  4106.     </xsl:for-each>
  4107.   </xsl:template>
  4108.  
  4109.  
  4110.  
  4111.   <xsl:template name="formatEditorLF">
  4112.     <xsl:for-each select="b:Author/b:Editor">
  4113.       <xsl:call-template name="formatPersonsAuthor"/>
  4114.     </xsl:for-each>
  4115.   </xsl:template>
  4116.  
  4117.   <xsl:template name="formatTranslatorLF">
  4118.     <xsl:for-each select="b:Author/b:Translator">
  4119.       <xsl:call-template name="formatPersonsAuthor"/>
  4120.     </xsl:for-each>
  4121.   </xsl:template>
  4122.  
  4123.  
  4124.   <xsl:template name="formatPerformerLF">
  4125.     <xsl:for-each select="b:Author/b:Performer">
  4126.       <xsl:call-template name="formatPersonsAuthor"/>
  4127.     </xsl:for-each>
  4128.   </xsl:template>
  4129.  
  4130.   <xsl:template name="formatConductorLF">
  4131.     <xsl:for-each select="b:Author/b:Conductor">
  4132.       <xsl:call-template name="formatPersonsAuthor"/>
  4133.     </xsl:for-each>
  4134.   </xsl:template>
  4135.  
  4136.   <xsl:template name="formatComposerLF">
  4137.     <xsl:for-each select="b:Author/b:Composer">
  4138.       <xsl:call-template name="formatPersonsAuthor"/>
  4139.     </xsl:for-each>
  4140.   </xsl:template>
  4141.  
  4142.   <xsl:template name="formatArtistLF">
  4143.     <xsl:for-each select="b:Author/b:Artist">
  4144.       <xsl:call-template name="formatPersonsAuthor"/>
  4145.     </xsl:for-each>
  4146.   </xsl:template>
  4147.  
  4148.  
  4149.   <xsl:template name="formatInventorLF">
  4150.     <xsl:for-each select="b:Author/b:Inventor">
  4151.       <xsl:call-template name="formatPersonsAuthor"/>
  4152.     </xsl:for-each>
  4153.   </xsl:template>
  4154.  
  4155.  
  4156.   <xsl:template name="formatIntervieweeLF">
  4157.     <xsl:for-each select="b:Author/b:Interviewee">
  4158.       <xsl:call-template name="formatPersonsAuthor"/>
  4159.     </xsl:for-each>
  4160.   </xsl:template>
  4161.  
  4162.  
  4163.   <xsl:template name="formatInterviewerLF">
  4164.     <xsl:for-each select="b:Author/b:Interviewer">
  4165.       <xsl:call-template name="formatPersonsAuthor"/>
  4166.     </xsl:for-each>
  4167.   </xsl:template>
  4168.  
  4169.  
  4170.   <xsl:template name="formatCompilerLF">
  4171.     <xsl:for-each select="b:Author/b:Compiler">
  4172.       <xsl:call-template name="formatPersonsAuthor"/>
  4173.     </xsl:for-each>
  4174.   </xsl:template>
  4175.  
  4176.  
  4177.  
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185.  
  4186.  
  4187.   <xsl:template name="formatEditor">
  4188.     <xsl:for-each select="b:Author/b:Editor">
  4189.       <xsl:call-template name="formatPersons"/>
  4190.     </xsl:for-each>
  4191.   </xsl:template>
  4192.  
  4193.   <xsl:template name="formatTranslator">
  4194.     <xsl:for-each select="b:Author/b:Translator">
  4195.       <xsl:call-template name="formatPersons"/>
  4196.     </xsl:for-each>
  4197.   </xsl:template>
  4198.  
  4199.  
  4200.   <xsl:template name="formatPerformer">
  4201.     <xsl:for-each select="b:Author/b:Performer">
  4202.       <xsl:call-template name="formatPersons"/>
  4203.     </xsl:for-each>
  4204.   </xsl:template>
  4205.  
  4206.  
  4207.  
  4208.   <xsl:template name="formatConductor">
  4209.     <xsl:for-each select="b:Author/b:Conductor">
  4210.       <xsl:call-template name="formatPersons"/>
  4211.     </xsl:for-each>
  4212.   </xsl:template>
  4213.  
  4214.  
  4215.   <xsl:template name="formatComposer">
  4216.     <xsl:for-each select="b:Author/b:Composer">
  4217.       <xsl:call-template name="formatPersons"/>
  4218.     </xsl:for-each>
  4219.   </xsl:template>
  4220.  
  4221.   <xsl:template name="formatInterviewer">
  4222.     <xsl:for-each select="b:Author/b:Interviewer">
  4223.       <xsl:call-template name="formatPersons"/>
  4224.     </xsl:for-each>
  4225.   </xsl:template>
  4226.  
  4227.  
  4228.   <xsl:template name="formatWriter">
  4229.     <xsl:for-each select="b:Author/b:Writer">
  4230.       <xsl:call-template name="formatPersons"/>
  4231.     </xsl:for-each>
  4232.   </xsl:template>
  4233.  
  4234.  
  4235.   <xsl:template name="formatDirector">
  4236.     <xsl:for-each select="b:Author/b:Director">
  4237.       <xsl:call-template name="formatPersons"/>
  4238.     </xsl:for-each>
  4239.   </xsl:template>
  4240.  
  4241.   <xsl:template name="formatProducerName">
  4242.     <xsl:for-each select="b:Author/b:ProducerName">
  4243.       <xsl:call-template name="formatPersons"/>
  4244.     </xsl:for-each>
  4245.   </xsl:template>
  4246.  
  4247.   <xsl:template name="formatCompiler">
  4248.     <xsl:for-each select="b:Author/b:Compiler">
  4249.       <xsl:call-template name="formatPersons"/>
  4250.     </xsl:for-each>
  4251.   </xsl:template>
  4252.  
  4253.  
  4254.   <xsl:template name="formatDate">
  4255.     <xsl:param name="appendSpace"/>
  4256.     <xsl:call-template name="formatDateCore">
  4257.       <xsl:with-param name="day">
  4258.         <xsl:call-template name="handleSpaces">
  4259.           <xsl:with-param name="field" select="b:Day"/>
  4260.         </xsl:call-template>
  4261.       </xsl:with-param>
  4262.       <xsl:with-param name="month">
  4263.         <xsl:call-template name="handleSpaces">
  4264.           <xsl:with-param name="field" select="b:Month"/>
  4265.         </xsl:call-template>
  4266.       </xsl:with-param>
  4267.       <xsl:with-param name="year">
  4268.         <xsl:call-template name="handleSpaces">
  4269.           <xsl:with-param name="field" select="b:Year"/>
  4270.         </xsl:call-template>
  4271.       </xsl:with-param>
  4272.  
  4273.       <xsl:with-param name="DMY">
  4274.         <xsl:call-template name="templ_prop_MLA_Date_DMY"/>
  4275.       </xsl:with-param>
  4276.       <xsl:with-param name="DM">
  4277.         <xsl:call-template name="templ_prop_MLA_Date_DM"/>
  4278.       </xsl:with-param>
  4279.       <xsl:with-param name="MY">
  4280.         <xsl:call-template name="templ_prop_MLA_Date_MY"/>
  4281.       </xsl:with-param>
  4282.       <xsl:with-param name="DY">
  4283.         <xsl:call-template name="templ_prop_MLA_Date_DY"/>
  4284.       </xsl:with-param>
  4285.     </xsl:call-template>
  4286.   </xsl:template>
  4287.  
  4288.   <xsl:template name="formatDateAccessed">
  4289.     <xsl:call-template name="formatDateCore">
  4290.       <xsl:with-param name="day">
  4291.         <xsl:call-template name="handleSpaces">
  4292.           <xsl:with-param name="field" select="b:DayAccessed"/>
  4293.         </xsl:call-template>
  4294.       </xsl:with-param>
  4295.       <xsl:with-param name="month">
  4296.         <xsl:call-template name="handleSpaces">
  4297.           <xsl:with-param name="field" select="b:MonthAccessed"/>
  4298.         </xsl:call-template>
  4299.       </xsl:with-param>
  4300.       <xsl:with-param name="year">
  4301.         <xsl:call-template name="handleSpaces">
  4302.           <xsl:with-param name="field" select="b:YearAccessed"/>
  4303.         </xsl:call-template>
  4304.       </xsl:with-param>
  4305.  
  4306.       <xsl:with-param name="DMY">
  4307.         <xsl:call-template name="templ_prop_MLA_Date_DMY"/>
  4308.       </xsl:with-param>
  4309.       <xsl:with-param name="DM">
  4310.         <xsl:call-template name="templ_prop_MLA_Date_DM"/>
  4311.       </xsl:with-param>
  4312.       <xsl:with-param name="MY">
  4313.         <xsl:call-template name="templ_prop_MLA_Date_MY"/>
  4314.       </xsl:with-param>
  4315.       <xsl:with-param name="DY">
  4316.         <xsl:call-template name="templ_prop_MLA_Date_DY"/>
  4317.       </xsl:with-param>
  4318.     </xsl:call-template>
  4319.   </xsl:template>
  4320.  
  4321.  
  4322.   
  4323.   
  4324.   
  4325.   
  4326.   <xsl:template name="MainContributors">
  4327.     <xsl:param name="SourceRoot"/>
  4328.     <xsl:choose>
  4329.       <xsl:when test="./b:SourceType='Book'">
  4330.         <xsl:choose>
  4331.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4332.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4333.           <xsl:when test="string-length(./b:Author/b:Translator/b:NameList/b:Person)>0">Translator</xsl:when>
  4334.         </xsl:choose>
  4335.       </xsl:when>
  4336.  
  4337.       <xsl:when test="./b:SourceType='BookSection'">
  4338.         <xsl:choose>
  4339.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4340.           <xsl:when test="string-length(./b:Author/b:BookAuthor/b:NameList/b:Person)>0">BookAuthor</xsl:when>
  4341.         </xsl:choose>
  4342.       </xsl:when>
  4343.  
  4344.       <xsl:when test="./b:SourceType='JournalArticle'">
  4345.         <xsl:choose>
  4346.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4347.         </xsl:choose>
  4348.       </xsl:when>
  4349.  
  4350.       <xsl:when test="./b:SourceType='ArticleInAPeriodical'">
  4351.         <xsl:choose>
  4352.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4353.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4354.         </xsl:choose>
  4355.       </xsl:when>
  4356.  
  4357.       <xsl:when test="./b:SourceType='ConferenceProceedings'">
  4358.         <xsl:choose>
  4359.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4360.         </xsl:choose>
  4361.       </xsl:when>
  4362.  
  4363.       <xsl:when test="./b:SourceType='Report'">
  4364.         <xsl:choose>
  4365.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4366.         </xsl:choose>
  4367.       </xsl:when>
  4368.  
  4369.       <xsl:when test="./b:SourceType='SoundRecording'">
  4370.         <xsl:choose>
  4371.           <xsl:when test="string-length(./b:Author/b:Artist/b:NameList/b:Person)>0">Artist</xsl:when>
  4372.           <xsl:when test="string-length(./b:Author/b:Performer/b:NameList/b:Person)>0">Performer</xsl:when>
  4373.           <xsl:when test="string-length(./b:Author/b:Composer/b:NameList/b:Person)>0">Composer</xsl:when>
  4374.         </xsl:choose>
  4375.       </xsl:when>
  4376.  
  4377.       <xsl:when test="./b:SourceType='Performance'">
  4378.         <xsl:choose>
  4379.           <xsl:when test="string-length(./b:Author/b:Writer/b:NameList/b:Person)>0">Writer</xsl:when>
  4380.           <xsl:when test="string-length(./b:Author/b:Performer/b:NameList/b:Person)>0">Performer</xsl:when>
  4381.           <xsl:when test="string-length(./b:Author/b:Director/b:NameList/b:Person)>0">Director</xsl:when>
  4382.         </xsl:choose>
  4383.       </xsl:when>
  4384.  
  4385.       <xsl:when test="./b:SourceType='Art'">
  4386.         <xsl:choose>
  4387.           <xsl:when test="string-length(./b:Author/b:Artist/b:NameList/b:Person)>0">Artist</xsl:when>
  4388.         </xsl:choose>
  4389.       </xsl:when>
  4390.  
  4391.       <xsl:when test="./b:SourceType='DocumentFromInternetSite'">
  4392.         <xsl:choose>
  4393.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4394.         </xsl:choose>
  4395.       </xsl:when>
  4396.  
  4397.       <xsl:when test="./b:SourceType='InternetSite'">
  4398.         <xsl:choose>
  4399.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4400.         </xsl:choose>
  4401.       </xsl:when>
  4402.  
  4403.       <xsl:when test="./b:SourceType='Film'">
  4404.         <xsl:choose>
  4405.           <xsl:when test="string-length(./b:Author/b:Writer/b:NameList/b:Person)>0">Writer</xsl:when>
  4406.           <xsl:when test="string-length(./b:Author/b:Performer/b:NameList/b:Person)>0">Performer</xsl:when>
  4407.           <xsl:when test="string-length(./b:Author/b:Director/b:NameList/b:Person)>0">Director</xsl:when>
  4408.         </xsl:choose>
  4409.       </xsl:when>
  4410.  
  4411.       <xsl:when test="./b:SourceType='Interview'">
  4412.         <xsl:choose>
  4413.           <xsl:when test="string-length(./b:Author/b:Interviewee/b:NameList/b:Person)>0">Interviewee</xsl:when>
  4414.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4415.           <xsl:when test="string-length(./b:Author/b:Translator/b:NameList/b:Person)>0">Translator</xsl:when>
  4416.         </xsl:choose>
  4417.       </xsl:when>
  4418.  
  4419.       <xsl:when test="./b:SourceType='Patent'">
  4420.         <xsl:choose>
  4421.           <xsl:when test="string-length(./b:Author/b:Inventor/b:NameList/b:Person)>0">Inventor</xsl:when>
  4422.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4423.           <xsl:when test="string-length(./b:Author/b:Translator/b:NameList/b:Person)>0">Translator</xsl:when>
  4424.         </xsl:choose>
  4425.       </xsl:when>
  4426.  
  4427.       <xsl:when test="./b:SourceType='ElectronicSource'">
  4428.         <xsl:choose>
  4429.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4430.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4431.         </xsl:choose>
  4432.       </xsl:when>
  4433.  
  4434.       <xsl:when test="./b:SourceType='Case'">
  4435.         <xsl:choose>
  4436.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4437.           <xsl:when test="string-length(./b:Author/b:Reporter/b:NameList/b:Person)>0">Reporter</xsl:when>
  4438.         </xsl:choose>
  4439.       </xsl:when>
  4440.  
  4441.       <xsl:when test="./b:SourceType='Misc'">
  4442.         <xsl:choose>
  4443.           <xsl:when test="string-length(./b:Author/b:Author/b:NameList/b:Person)>0">Author</xsl:when>
  4444.           <xsl:when test="string-length(./b:Author/b:Editor/b:NameList/b:Person)>0">Editor</xsl:when>
  4445.           <xsl:when test="string-length(./b:Author/b:Translator/b:NameList/b:Person)>0">Translator</xsl:when>
  4446.         </xsl:choose>
  4447.       </xsl:when>
  4448.     </xsl:choose>
  4449.   </xsl:template>
  4450.  
  4451.  
  4452.   
  4453.   <xsl:template name="populateMain">
  4454.     <xsl:param name="Type"/>
  4455.     
  4456.     <xsl:element name="{$Type}">
  4457.       
  4458.  
  4459.       <xsl:for-each select="/*[$Type]/b:Source">
  4460.         
  4461.         <xsl:variable name="MostImportantAuthorLocalName">
  4462.           
  4463.           <xsl:call-template name="MainContributors"/>
  4464.         </xsl:variable>
  4465.         <xsl:element name="{'b:Source'}">
  4466.           
  4467.           <xsl:if test="$Type='b:Citation'">
  4468.             
  4469.             <b:Title>
  4470.               
  4471.               <xsl:if test="string-length(b:Title)>0">
  4472.                 <xsl:value-of select="b:Title"/>
  4473.               </xsl:if>
  4474.               
  4475.               <xsl:if test="string-length(b:Title)=0">
  4476.                 <xsl:choose>
  4477.                   <xsl:when test="b:SourceType='Book' or
  4478.                                   b:SourceType='JournalArticle' or
  4479.                                   b:SourceType='ConferenceProceedings' or
  4480.                                   b:SourceType='Report' or
  4481.                                   b:SourceType='Performance' or
  4482.                                   b:SourceType='Film' or
  4483.                                   b:SourceType='Patent' or
  4484.                                   b:SourceType='Case'">
  4485.  
  4486.                     <xsl:value-of select="b:ShortTitle"/>
  4487.                   </xsl:when>
  4488.  
  4489.                   <xsl:when test="b:SourceType='BookSection'">
  4490.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4491.                     <xsl:variable name="bookTitle" select="b:BookTitle"/>
  4492.  
  4493.                     <xsl:choose>
  4494.                       <xsl:when test="string-length($shortTitle)>0">
  4495.                         <xsl:value-of select="$shortTitle"/>
  4496.                       </xsl:when>
  4497.                       <xsl:when test="string-length($bookTitle)>0">
  4498.                         <xsl:value-of select="$bookTitle"/>
  4499.                       </xsl:when>
  4500.                     </xsl:choose>
  4501.  
  4502.                   </xsl:when>
  4503.  
  4504.                   <xsl:when test="b:SourceType='ArticleInAPeriodical'">
  4505.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4506.                     <xsl:variable name="periodicalTitle" select="b:PeriodicalTitle"/>
  4507.  
  4508.                     <xsl:choose>
  4509.                       <xsl:when test="string-length($shortTitle)>0">
  4510.                         <xsl:value-of select="$shortTitle"/>
  4511.                       </xsl:when>
  4512.                       <xsl:when test="string-length($periodicalTitle)>0">
  4513.                         <xsl:value-of select="$periodicalTitle"/>
  4514.                       </xsl:when>
  4515.                     </xsl:choose>
  4516.                   </xsl:when>
  4517.  
  4518.                   <xsl:when test="b:SourceType='InternetSite' or
  4519.                                   b:SourceType='DocumentFromInternetSite'">
  4520.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4521.                     <xsl:variable name="internetSiteTitle" select="b:InternetSiteTitle"/>
  4522.  
  4523.                     <xsl:choose>
  4524.                       <xsl:when test="string-length($shortTitle)>0">
  4525.                         <xsl:value-of select="$shortTitle"/>
  4526.                       </xsl:when>
  4527.                       <xsl:when test="string-length($internetSiteTitle)>0">
  4528.                         <xsl:value-of select="$internetSiteTitle"/>
  4529.                       </xsl:when>
  4530.                     </xsl:choose>
  4531.                   </xsl:when>
  4532.  
  4533.                   <xsl:when test="b:SourceType='ElectronicSource' or
  4534.                                   b:SourceType='Art' or
  4535.                                   b:SourceType='Misc'">
  4536.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4537.                     <xsl:variable name="publicationTitle" select="b:PublicationTitle"/>
  4538.  
  4539.                     <xsl:choose>
  4540.                       <xsl:when test="string-length($shortTitle)>0">
  4541.                         <xsl:value-of select="$shortTitle"/>
  4542.                       </xsl:when>
  4543.                       <xsl:when test="string-length($publicationTitle)>0">
  4544.                         <xsl:value-of select="$publicationTitle"/>
  4545.                       </xsl:when>
  4546.                     </xsl:choose>
  4547.                   </xsl:when>
  4548.  
  4549.                   <xsl:when test="b:SourceType='SoundRecording'">
  4550.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4551.                     <xsl:variable name="albumTitle" select="b:AlbumTitle"/>
  4552.  
  4553.                     <xsl:choose>
  4554.                       <xsl:when test="string-length($shortTitle)>0">
  4555.                         <xsl:value-of select="$shortTitle"/>
  4556.                       </xsl:when>
  4557.                       <xsl:when test="string-length($albumTitle)>0">
  4558.                         <xsl:value-of select="$albumTitle"/>
  4559.                       </xsl:when>
  4560.                     </xsl:choose>
  4561.                   </xsl:when>
  4562.  
  4563.                   <xsl:when test="b:SourceType='Interview'">
  4564.                     <xsl:variable name="shortTitle" select="b:ShortTitle"/>
  4565.                     
  4566.                     <xsl:variable name="broadcastTitle" select="b:BroadcastTitle"/>
  4567.                     
  4568.  
  4569.                     <xsl:choose>
  4570.                       <xsl:when test="string-length($shortTitle)>0">
  4571.                         <xsl:value-of select="$shortTitle"/>
  4572.                       </xsl:when>
  4573.                       
  4574.                       <xsl:when test="string-length($broadcastTitle)>0">
  4575.                         <xsl:value-of select="$broadcastTitle"/>
  4576.                       </xsl:when>
  4577.                       
  4578.                     </xsl:choose>
  4579.                   </xsl:when>
  4580.  
  4581.                 </xsl:choose>
  4582.               </xsl:if>
  4583.             </b:Title>
  4584.           </xsl:if>
  4585.           <b:Author>
  4586.             
  4587.             <b:Main>
  4588.               <b:NameList>
  4589.                 <xsl:for-each select="./b:Author/*[local-name()=$MostImportantAuthorLocalName]/b:NameList/b:Person">
  4590.                   <b:Person>
  4591.                     
  4592.                     <b:Last>
  4593.                       <xsl:value-of select="./b:Last"/>
  4594.                     </b:Last>
  4595.                     <b:First>
  4596.                       <xsl:value-of select="./b:First"/>
  4597.                     </b:First>
  4598.                     <b:Middle>
  4599.                       <xsl:value-of select="./b:Middle"/>
  4600.                     </b:Middle>
  4601.                     <b:PostFix>
  4602.                       <xsl:value-of select="./b:PostFix"/>
  4603.                     </b:PostFix>
  4604.                   </b:Person>
  4605.                 </xsl:for-each>
  4606.               </b:NameList>
  4607.             </b:Main>
  4608.             <xsl:for-each select="./b:Author/*">
  4609.               
  4610.               
  4611.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  4612.                 <xsl:call-template name="copyNameNodes"/>
  4613.                 
  4614.               </xsl:element>
  4615.               
  4616.             </xsl:for-each>
  4617.           </b:Author>
  4618.           <xsl:for-each select="*">
  4619.             
  4620.             <xsl:if test="name()!='Author' and not(name()='Title' and $Type='b:Citation')">
  4621.               <xsl:element name="{name()}" namespace="{namespace-uri()}">
  4622.                 <xsl:call-template name="copyNodes"/>
  4623.                 
  4624.               </xsl:element>
  4625.             </xsl:if>
  4626.           </xsl:for-each>
  4627.         </xsl:element>
  4628.         <xsl:for-each select="../*">
  4629.           
  4630.           <xsl:if test="name()!='Source'">
  4631.             <xsl:element name="{name()}" namespace="{namespace-uri()}">
  4632.               <xsl:call-template name="copyNodes"/>
  4633.               
  4634.             </xsl:element>
  4635.           </xsl:if>
  4636.         </xsl:for-each>
  4637.       </xsl:for-each>
  4638.       
  4639.       <xsl:copy-of select="/*[$Type]/b:Locals"/>
  4640.     </xsl:element>
  4641.   </xsl:template>
  4642.  
  4643.   
  4644.   <xsl:template name="copyNameNodes">
  4645.     <b:NameList>
  4646.       <xsl:for-each select="b:NameList/b:Person">
  4647.         
  4648.         <b:Person>
  4649.           
  4650.           <xsl:if test="string-length(./b:Last)>0">
  4651.             
  4652.             <b:Last>
  4653.               <xsl:value-of select="./b:Last"/>
  4654.             </b:Last>
  4655.           </xsl:if>
  4656.           <xsl:if test="string-length(./b:Middle)>0">
  4657.             <b:Middle>
  4658.               <xsl:value-of select="./b:Middle"/>
  4659.             </b:Middle>
  4660.           </xsl:if>
  4661.           <xsl:if test="string-length(./b:First)>0">
  4662.             <b:First>
  4663.               <xsl:value-of select="./b:First"/>
  4664.             </b:First>
  4665.           </xsl:if>
  4666.           <xsl:if test="string-length(./b:PostFix)">
  4667.             <b:PostFix>
  4668.               <xsl:value-of select="./b:PostFix"/>
  4669.             </b:PostFix>
  4670.           </xsl:if>
  4671.         </b:Person>
  4672.       </xsl:for-each>
  4673.     </b:NameList>
  4674.   </xsl:template>
  4675.  
  4676.   
  4677.   <xsl:template name="copyNodes">
  4678.     <xsl:value-of select="."/>
  4679.  
  4680.   </xsl:template>
  4681.  
  4682.   <xsl:template name="copyNodes2">
  4683.     <xsl:for-each select="@*">
  4684.       <xsl:attribute name="{name()}" namespace="{namespace-uri()}">
  4685.         <xsl:value-of select="."/>
  4686.       </xsl:attribute>
  4687.     </xsl:for-each>
  4688.     <xsl:for-each select="*">
  4689.       <xsl:element name="{name()}" namespace="{namespace-uri()}">
  4690.         <xsl:call-template name="copyNodes2"/>
  4691.         
  4692.       </xsl:element>
  4693.     </xsl:for-each>
  4694.  
  4695.   </xsl:template>
  4696.  
  4697.  
  4698.   <xsl:template name="handleSpaces">
  4699.     <xsl:param name="field"/>
  4700.  
  4701.     <xsl:variable name="prop_NormalizeSpace">
  4702.       <xsl:call-template name="templ_prop_NormalizeSpace"/>
  4703.     </xsl:variable>
  4704.  
  4705.     <xsl:choose>
  4706.       <xsl:when test="$prop_NormalizeSpace='yes'">
  4707.         <xsl:value-of select="normalize-space($field)"/>
  4708.       </xsl:when>
  4709.       <xsl:otherwise>
  4710.         <xsl:value-of select="$field"/>
  4711.       </xsl:otherwise>
  4712.     </xsl:choose>
  4713.   </xsl:template>
  4714.  
  4715.  
  4716.   <xsl:template name="appendField_Dot">
  4717.     <xsl:param name="field"/>
  4718.  
  4719.     <xsl:variable name="temp">
  4720.       <xsl:call-template name="handleSpaces">
  4721.         <xsl:with-param name="field" select="$field"/>
  4722.       </xsl:call-template>
  4723.     </xsl:variable>
  4724.  
  4725.     <xsl:variable name="prop_EndChars">
  4726.       <xsl:call-template name="templ_prop_EndChars"/>
  4727.     </xsl:variable>
  4728.  
  4729.     <xsl:variable name="lastChar">
  4730.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  4731.     </xsl:variable>
  4732.  
  4733.     <xsl:choose>
  4734.       <xsl:when test="string-length($temp) = 0">
  4735.       </xsl:when>
  4736.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  4737.         <xsl:value-of select="$temp"/>
  4738.       </xsl:when>
  4739.       <xsl:otherwise>
  4740.         <xsl:value-of select="$temp"/>
  4741.         <xsl:call-template name="templ_prop_Dot"/>
  4742.       </xsl:otherwise>
  4743.     </xsl:choose>
  4744.  
  4745.   </xsl:template>
  4746.  
  4747.  
  4748.   <xsl:template name="appendFieldNoHandleSpaces_Dot">
  4749.     <xsl:param name="field"/>
  4750.  
  4751.     <xsl:variable name="lastChar">
  4752.       <xsl:value-of select="substring($field, string-length($field))"/>
  4753.     </xsl:variable>
  4754.  
  4755.     <xsl:variable name="prop_EndChars">
  4756.       <xsl:call-template name="templ_prop_EndChars"/>
  4757.     </xsl:variable>
  4758.  
  4759.     <xsl:choose>
  4760.       <xsl:when test="string-length($field) = 0">
  4761.       </xsl:when>
  4762.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  4763.         <xsl:value-of select="$field"/>
  4764.       </xsl:when>
  4765.       <xsl:otherwise>
  4766.         <xsl:value-of select="$field"/>
  4767.         <xsl:call-template name="templ_prop_Dot"/>
  4768.       </xsl:otherwise>
  4769.     </xsl:choose>
  4770.  
  4771.   </xsl:template>
  4772.  
  4773.  
  4774.   <xsl:template name="templateA">
  4775.     <xsl:param name="first"/>
  4776.     <xsl:param name="second"/>
  4777.     <xsl:param name="third"/>
  4778.  
  4779.     <xsl:variable name="tempFirst">
  4780.       <xsl:call-template name="handleSpaces">
  4781.         <xsl:with-param name="field" select="$first"/>
  4782.       </xsl:call-template>
  4783.     </xsl:variable>
  4784.  
  4785.     <xsl:variable name="tempSecond">
  4786.       <xsl:call-template name="handleSpaces">
  4787.         <xsl:with-param name="field" select="$second"/>
  4788.       </xsl:call-template>
  4789.     </xsl:variable>
  4790.  
  4791.     <xsl:variable name="tempThird">
  4792.       <xsl:call-template name="handleSpaces">
  4793.         <xsl:with-param name="field" select="$third"/>
  4794.       </xsl:call-template>
  4795.     </xsl:variable>
  4796.  
  4797.     <xsl:variable name="temp">
  4798.       <xsl:if test="string-length($tempFirst)>0">
  4799.         <xsl:value-of select="$tempFirst"/>
  4800.       </xsl:if>
  4801.  
  4802.       <xsl:if test="string-length($tempFirst)>0 and (string-length($tempSecond)>0 or string-length($tempThird)>0)">
  4803.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  4804.       </xsl:if>
  4805.  
  4806.       <xsl:if test="string-length($tempSecond)>0">
  4807.         <xsl:value-of select="$tempSecond"/>
  4808.       </xsl:if>
  4809.  
  4810.       <xsl:if test="string-length($tempSecond)>0 and string-length($tempThird)>0">
  4811.         <xsl:call-template name="templ_prop_ListSeparator"/>
  4812.       </xsl:if>
  4813.  
  4814.       <xsl:if test="string-length($tempThird)>0">
  4815.         <xsl:value-of select="$tempThird"/>
  4816.       </xsl:if>
  4817.     </xsl:variable>
  4818.  
  4819.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  4820.       <xsl:with-param name="field" select="$temp"/>
  4821.     </xsl:call-template>
  4822.   </xsl:template>
  4823.  
  4824.  
  4825.   <xsl:template name="templateB">
  4826.     <xsl:param name="first"/>
  4827.     <xsl:param name="second"/>
  4828.  
  4829.     <xsl:variable name="tempFirst">
  4830.       <xsl:call-template name="handleSpaces">
  4831.         <xsl:with-param name="field" select="$first"/>
  4832.       </xsl:call-template>
  4833.     </xsl:variable>
  4834.  
  4835.     <xsl:variable name="tempSecond">
  4836.       <xsl:call-template name="handleSpaces">
  4837.         <xsl:with-param name="field" select="$second"/>
  4838.       </xsl:call-template>
  4839.     </xsl:variable>
  4840.  
  4841.     <xsl:variable name="temp">
  4842.       <xsl:if test="string-length($tempFirst)>0">
  4843.         <xsl:value-of select="$tempFirst"/>
  4844.       </xsl:if>
  4845.  
  4846.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  4847.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  4848.       </xsl:if>
  4849.  
  4850.       <xsl:if test="string-length($tempSecond)>0">
  4851.         <xsl:value-of select="$tempSecond"/>
  4852.       </xsl:if>
  4853.  
  4854.     </xsl:variable>
  4855.  
  4856.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  4857.       <xsl:with-param name="field" select="$temp"/>
  4858.     </xsl:call-template>
  4859.  
  4860.   </xsl:template>
  4861.  
  4862.   <xsl:template name="templateC">
  4863.     <xsl:param name="first"/>
  4864.     <xsl:param name="second"/>
  4865.  
  4866.     <xsl:variable name="tempFirst">
  4867.       <xsl:call-template name="handleSpaces">
  4868.         <xsl:with-param name="field" select="$first"/>
  4869.       </xsl:call-template>
  4870.     </xsl:variable>
  4871.  
  4872.     <xsl:variable name="tempSecond">
  4873.       <xsl:call-template name="handleSpaces">
  4874.         <xsl:with-param name="field" select="$second"/>
  4875.       </xsl:call-template>
  4876.     </xsl:variable>
  4877.  
  4878.     <xsl:variable name="temp">
  4879.       <xsl:if test="string-length($tempFirst)>0">
  4880.         <xsl:value-of select="$tempFirst"/>
  4881.       </xsl:if>
  4882.  
  4883.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  4884.         <xsl:call-template name="templ_prop_ListSeparator"/>
  4885.       </xsl:if>
  4886.  
  4887.       <xsl:if test="string-length($tempSecond)>0">
  4888.         <xsl:value-of select="$tempSecond"/>
  4889.       </xsl:if>
  4890.  
  4891.     </xsl:variable>
  4892.  
  4893.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  4894.       <xsl:with-param name="field" select="$temp"/>
  4895.     </xsl:call-template>
  4896.   </xsl:template>
  4897.  
  4898.  
  4899.   <xsl:template name="templateD">
  4900.     <xsl:param name="first"/>
  4901.     <xsl:param name="second"/>
  4902.     <xsl:param name="third"/>
  4903.  
  4904.     <xsl:variable name="tempFirst">
  4905.       <xsl:call-template name="handleSpaces">
  4906.         <xsl:with-param name="field" select="$first"/>
  4907.       </xsl:call-template>
  4908.     </xsl:variable>
  4909.  
  4910.     <xsl:variable name="tempSecond">
  4911.       <xsl:call-template name="handleSpaces">
  4912.         <xsl:with-param name="field" select="$second"/>
  4913.       </xsl:call-template>
  4914.     </xsl:variable>
  4915.  
  4916.     <xsl:variable name="tempThird">
  4917.       <xsl:call-template name="handleSpaces">
  4918.         <xsl:with-param name="field" select="$third"/>
  4919.       </xsl:call-template>
  4920.     </xsl:variable>
  4921.  
  4922.     <xsl:variable name="temp">
  4923.       <xsl:if test="string-length($tempFirst)>0">
  4924.         <xsl:value-of select="$tempFirst"/>
  4925.       </xsl:if>
  4926.  
  4927.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  4928.         <xsl:call-template name="templ_prop_Space"/>
  4929.       </xsl:if>
  4930.  
  4931.       <xsl:if test="string-length($tempSecond)>0">
  4932.         <xsl:call-template name="templ_prop_OpenBracket"/>
  4933.         <xsl:value-of select="$tempSecond"/>
  4934.         <xsl:call-template name="templ_prop_CloseBracket"/>
  4935.       </xsl:if>
  4936.  
  4937.       <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) and string-length($tempThird)>0">
  4938.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  4939.       </xsl:if>
  4940.  
  4941.       <xsl:if test="string-length($tempThird)>0">
  4942.         <xsl:value-of select="$tempThird"/>
  4943.       </xsl:if>
  4944.     </xsl:variable>
  4945.  
  4946.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  4947.       <xsl:with-param name="field" select="$temp"/>
  4948.     </xsl:call-template>
  4949.   </xsl:template>
  4950.  
  4951.  
  4952.   <xsl:template name="templateE">
  4953.     <xsl:param name="first"/>
  4954.     <xsl:param name="second"/>
  4955.     <xsl:param name="third"/>
  4956.  
  4957.     <xsl:variable name="tempFirst">
  4958.       <xsl:call-template name="handleSpaces">
  4959.         <xsl:with-param name="field" select="$first"/>
  4960.       </xsl:call-template>
  4961.     </xsl:variable>
  4962.  
  4963.     <xsl:variable name="tempSecond">
  4964.       <xsl:call-template name="handleSpaces">
  4965.         <xsl:with-param name="field" select="$second"/>
  4966.       </xsl:call-template>
  4967.     </xsl:variable>
  4968.  
  4969.     <xsl:variable name="tempThird">
  4970.       <xsl:call-template name="handleSpaces">
  4971.         <xsl:with-param name="field" select="$third"/>
  4972.       </xsl:call-template>
  4973.     </xsl:variable>
  4974.  
  4975.     <xsl:variable name="temp">
  4976.       <xsl:if test="string-length($tempFirst)>0">
  4977.         <xsl:value-of select="$tempFirst"/>
  4978.       </xsl:if>
  4979.  
  4980.       <xsl:if test="string-length($tempFirst)>0 and string-length($tempSecond)>0">
  4981.         <xsl:call-template name="templ_prop_ListSeparator"/>
  4982.       </xsl:if>
  4983.  
  4984.       <xsl:if test="string-length($tempSecond)>0">
  4985.         <xsl:value-of select="$tempSecond"/>
  4986.       </xsl:if>
  4987.  
  4988.       <xsl:if test="(string-length($tempFirst)>0 or string-length($tempSecond)>0) and string-length($tempThird)>0">
  4989.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  4990.       </xsl:if>
  4991.  
  4992.       <xsl:if test="string-length($tempThird)>0">
  4993.         <xsl:value-of select="$tempThird"/>
  4994.       </xsl:if>
  4995.     </xsl:variable>
  4996.  
  4997.     <xsl:call-template name="appendFieldNoHandleSpaces_Dot">
  4998.       <xsl:with-param name="field" select="$temp"/>
  4999.     </xsl:call-template>
  5000.   </xsl:template>
  5001.  
  5002.  
  5003.   <xsl:template name="templateCPY">
  5004.     <xsl:call-template name="templateA">
  5005.       <xsl:with-param name="first" select="b:City"/>
  5006.       <xsl:with-param name="second" select="b:Publisher"/>
  5007.       <xsl:with-param name="third" select="b:Year"/>
  5008.     </xsl:call-template>
  5009.   </xsl:template>
  5010.  
  5011.   <xsl:template name="templateCPcY">
  5012.     <xsl:call-template name="templateA">
  5013.       <xsl:with-param name="first" select="b:City"/>
  5014.       <xsl:with-param name="second" select="b:ProductionCompany"/>
  5015.       <xsl:with-param name="third" select="b:Year"/>
  5016.     </xsl:call-template>
  5017.   </xsl:template>
  5018.  
  5019.   <xsl:template name="templateIYP">
  5020.     <xsl:call-template name="templateD">
  5021.       <xsl:with-param name="first" select="b:Issue"/>
  5022.       <xsl:with-param name="second" select="b:Year"/>
  5023.       <xsl:with-param name="third" select="b:Pages"/>
  5024.     </xsl:call-template>
  5025.   </xsl:template>
  5026.  
  5027.   <xsl:template name="templateVYP">
  5028.     <xsl:call-template name="templateD">
  5029.       <xsl:with-param name="first" select="b:Volume"/>
  5030.       <xsl:with-param name="second" select="b:Year"/>
  5031.       <xsl:with-param name="third" select="b:Pages"/>
  5032.     </xsl:call-template>
  5033.   </xsl:template>
  5034.  
  5035.   <xsl:template name="templateDEP">
  5036.  
  5037.     <xsl:variable name="date">
  5038.       <xsl:call-template name="formatDate"/>
  5039.     </xsl:variable>
  5040.  
  5041.     <xsl:variable name="editionTemp">
  5042.       <xsl:call-template name="handleSpaces">
  5043.         <xsl:with-param name="field" select="b:Edition"/>
  5044.       </xsl:call-template>
  5045.     </xsl:variable>
  5046.  
  5047.     <xsl:variable name="edition">
  5048.       <xsl:choose>
  5049.         <xsl:when test="string-length($editionTemp)>0">
  5050.           <xsl:value-of select="$editionTemp"/>
  5051.           <xsl:call-template name="templ_prop_Space"/>
  5052.           <xsl:call-template name="templ_str_EditionShortUnCap"/>
  5053.         </xsl:when>
  5054.       </xsl:choose>
  5055.     </xsl:variable>
  5056.  
  5057.     <xsl:call-template name="templateE">
  5058.       <xsl:with-param name="first" select="$date"/>
  5059.       <xsl:with-param name="second" select="$edition"/>
  5060.       <xsl:with-param name="third" select="b:Pages"/>
  5061.     </xsl:call-template>
  5062.   </xsl:template>
  5063.  
  5064.   <xsl:template name="templateTC">
  5065.     <xsl:call-template name="templateC">
  5066.       <xsl:with-param name="first" select="b:Theater"/>
  5067.       <xsl:with-param name="second" select="b:City"/>
  5068.     </xsl:call-template>
  5069.   </xsl:template>
  5070.  
  5071.   <xsl:template name="templateIC">
  5072.     <xsl:call-template name="templateC">
  5073.       <xsl:with-param name="first" select="b:Institution"/>
  5074.       <xsl:with-param name="second" select="b:City"/>
  5075.     </xsl:call-template>
  5076.   </xsl:template>
  5077.  
  5078.   <xsl:template name="templateIY">
  5079.     <xsl:call-template name="templateC">
  5080.       <xsl:with-param name="first" select="b:Institution"/>
  5081.       <xsl:with-param name="second" select="b:Year"/>
  5082.     </xsl:call-template>
  5083.   </xsl:template>
  5084.  
  5085.  
  5086.   <xsl:template name="templateDY">
  5087.     <xsl:call-template name="templateC">
  5088.       <xsl:with-param name="first" select="b:Distributor"/>
  5089.       <xsl:with-param name="second" select="b:Year"/>
  5090.     </xsl:call-template>
  5091.   </xsl:template>
  5092.  
  5093.   <xsl:template name="templateCPD">
  5094.     <xsl:variable name="date">
  5095.       <xsl:call-template name="formatDate"/>
  5096.     </xsl:variable>
  5097.  
  5098.     <xsl:call-template name="templateA">
  5099.       <xsl:with-param name="first" select="b:City"/>
  5100.       <xsl:with-param name="second" select="b:Publisher"/>
  5101.       <xsl:with-param name="third" select="$date"/>
  5102.     </xsl:call-template>
  5103.   </xsl:template>
  5104.  
  5105.   <xsl:template name="templateSC">
  5106.     <xsl:call-template name="templateC">
  5107.       <xsl:with-param name="first" select="b:Station"/>
  5108.       <xsl:with-param name="second" select="b:City"/>
  5109.     </xsl:call-template>
  5110.   </xsl:template>
  5111.  
  5112.  
  5113.   <xsl:template name="templateCP">
  5114.     <xsl:variable name="patentTemp">
  5115.       <xsl:call-template name="handleSpaces">
  5116.         <xsl:with-param name="field" select="b:PatentNumber"/>
  5117.       </xsl:call-template>
  5118.     </xsl:variable>
  5119.  
  5120.     <xsl:variable name="str_PatentCap">
  5121.       <xsl:call-template name="templ_str_PatentCap"/>
  5122.     </xsl:variable>
  5123.  
  5124.     <xsl:variable name="patent">
  5125.       <xsl:choose>
  5126.         <xsl:when test="string-length($patentTemp)>0">
  5127.           <xsl:call-template name="StringFormat">
  5128.             <xsl:with-param name="format" select="$str_PatentCap"/>
  5129.  
  5130.             <xsl:with-param name="parameters">
  5131.               <t:params>
  5132.                 <t:param>
  5133.                   <xsl:value-of select="$patentTemp"/>
  5134.                 </t:param>
  5135.               </t:params>
  5136.             </xsl:with-param>
  5137.           </xsl:call-template>
  5138.         </xsl:when>
  5139.       </xsl:choose>
  5140.     </xsl:variable>
  5141.     <xsl:call-template name="templateB">
  5142.       <xsl:with-param name="first" select="b:CountryRegion"/>
  5143.       <xsl:with-param name="second" select="$patent"/>
  5144.     </xsl:call-template>
  5145.   </xsl:template>
  5146.  
  5147.  
  5148.   <xsl:template name="templateCD">
  5149.     <xsl:variable name="date">
  5150.       <xsl:call-template name="formatDate"/>
  5151.     </xsl:variable>
  5152.     <xsl:call-template name="templateB">
  5153.       <xsl:with-param name="first" select="b:City"/>
  5154.       <xsl:with-param name="second" select="$date"/>
  5155.     </xsl:call-template>
  5156.   </xsl:template>
  5157.  
  5158.   <xsl:template name="templateVIYP">
  5159.  
  5160.     <xsl:variable name="volume">
  5161.       <xsl:call-template name="handleSpaces">
  5162.         <xsl:with-param name="field" select="b:Volume"/>
  5163.       </xsl:call-template>
  5164.     </xsl:variable>
  5165.  
  5166.     <xsl:variable name="issue">
  5167.       <xsl:call-template name="handleSpaces">
  5168.         <xsl:with-param name="field" select="b:Issue"/>
  5169.       </xsl:call-template>
  5170.     </xsl:variable>
  5171.  
  5172.     <xsl:variable name="year">
  5173.       <xsl:call-template name="handleSpaces">
  5174.         <xsl:with-param name="field" select="b:Year"/>
  5175.       </xsl:call-template>
  5176.     </xsl:variable>
  5177.  
  5178.     <xsl:variable name="pages">
  5179.       <xsl:call-template name="handleSpaces">
  5180.         <xsl:with-param name="field" select="b:Pages"/>
  5181.       </xsl:call-template>
  5182.     </xsl:variable>
  5183.  
  5184.     <xsl:variable name="temp">
  5185.       <xsl:if test="string-length($volume)>0">
  5186.         <xsl:value-of select="$volume"/>
  5187.       </xsl:if>
  5188.  
  5189.       <xsl:if test="string-length($volume)>0 and string-length($issue)>0">
  5190.         <xsl:call-template name="templ_prop_Dot"/>
  5191.       </xsl:if>
  5192.  
  5193.       <xsl:if test="string-length($issue)>0">
  5194.         <xsl:value-of select="$issue"/>
  5195.       </xsl:if>
  5196.  
  5197.       <xsl:if test="string-length($year)>0">
  5198.         <xsl:call-template name="templ_prop_Space"/>
  5199.         <xsl:call-template name="templ_prop_OpenBracket"/>
  5200.         <xsl:value-of select="$year"/>
  5201.         <xsl:call-template name="templ_prop_CloseBracket"/>
  5202.       </xsl:if>
  5203.  
  5204.       <xsl:if test="(string-length($volume)>0 or string-length($issue)>0 or string-length($year)>0) and (string-length($pages)>0)">
  5205.         <xsl:call-template name="templ_prop_EnumSeparator"/>
  5206.       </xsl:if>
  5207.  
  5208.       <xsl:if test="string-length($pages)>0">
  5209.         <xsl:value-of select="$pages"/>
  5210.       </xsl:if>
  5211.     </xsl:variable>
  5212.  
  5213.     <xsl:call-template name="appendField_Dot">
  5214.       <xsl:with-param name="field" select="$temp"/>
  5215.     </xsl:call-template>
  5216.  
  5217.  
  5218.   </xsl:template>
  5219.   <xsl:template name="need_Dot">
  5220.     <xsl:param name="field"/>
  5221.  
  5222.     <xsl:variable name="temp">
  5223.       <xsl:call-template name="handleSpaces">
  5224.         <xsl:with-param name="field" select="$field"/>
  5225.       </xsl:call-template>
  5226.     </xsl:variable>
  5227.     <xsl:variable name="prop_EndChars">
  5228.       <xsl:call-template name="templ_prop_EndChars"/>
  5229.     </xsl:variable>
  5230.  
  5231.     <xsl:variable name="lastChar">
  5232.       <xsl:value-of select="substring($temp, string-length($temp))"/>
  5233.     </xsl:variable>
  5234.  
  5235.     <xsl:choose>
  5236.       <xsl:when test="string-length($temp) = 0">
  5237.       </xsl:when>
  5238.       <xsl:when test="contains($prop_EndChars, $lastChar)">
  5239.       </xsl:when>
  5240.       <xsl:otherwise>
  5241.         <xsl:call-template name="templ_prop_Dot"/>
  5242.       </xsl:otherwise>
  5243.     </xsl:choose>
  5244.   </xsl:template>
  5245.  
  5246.  
  5247.   
  5248.  
  5249.   <xsl:template name="formatNameCore">
  5250.     <xsl:param name="FML"/>
  5251.     <xsl:param name="FM"/>
  5252.     <xsl:param name="ML"/>
  5253.     <xsl:param name="FL"/>
  5254.     <xsl:param name="upperLast"/>
  5255.     <xsl:param name="withDot"/>
  5256.  
  5257.     <xsl:variable name="first">
  5258.       <xsl:call-template name="handleSpaces">
  5259.         <xsl:with-param name="field" select="b:First"/>
  5260.       </xsl:call-template>
  5261.     </xsl:variable>
  5262.  
  5263.     <xsl:variable name="middle">
  5264.       <xsl:call-template name="handleSpaces">
  5265.         <xsl:with-param name="field" select="b:Middle"/>
  5266.       </xsl:call-template>
  5267.     </xsl:variable>
  5268.  
  5269.     <xsl:variable name="last">
  5270.       <xsl:call-template name="handleSpaces">
  5271.         <xsl:with-param name="field" select="b:Last"/>
  5272.       </xsl:call-template>
  5273.     </xsl:variable>
  5274.  
  5275.     <xsl:variable name="format">
  5276.       <xsl:choose>
  5277.         <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  5278.         </xsl:when>
  5279.         <xsl:when test="string-length($first) = 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  5280.           <xsl:call-template name="templ_prop_SimpleAuthor_L" />
  5281.         </xsl:when>
  5282.         <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  5283.           <xsl:call-template name="templ_prop_SimpleAuthor_M" />
  5284.         </xsl:when>
  5285.         <xsl:when test="string-length($first) = 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  5286.           <xsl:value-of select="$ML"/>
  5287.         </xsl:when>
  5288.         <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) = 0 ">
  5289.           <xsl:call-template name="templ_prop_SimpleAuthor_F" />
  5290.         </xsl:when>
  5291.         <xsl:when test="string-length($first) != 0 and string-length($middle) = 0 and string-length($last) != 0 ">
  5292.           <xsl:value-of select="$FL"/>
  5293.         </xsl:when>
  5294.         <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) = 0 ">
  5295.           <xsl:value-of select="$FM"/>
  5296.         </xsl:when>
  5297.         <xsl:when test="string-length($first) != 0 and string-length($middle) != 0 and string-length($last) != 0 ">
  5298.           <xsl:value-of select="$FML"/>
  5299.         </xsl:when>
  5300.       </xsl:choose>
  5301.     </xsl:variable>
  5302.  
  5303.     <xsl:call-template name="StringFormatName">
  5304.       <xsl:with-param name="format" select="$format"/>
  5305.       <xsl:with-param name="upperLast" select="$upperLast"/>
  5306.       <xsl:with-param name="withDot" select="$withDot"/>
  5307.     </xsl:call-template>
  5308.  
  5309.   </xsl:template>
  5310.  
  5311.   <xsl:template name="formatDateCorePrivate">
  5312.     <xsl:param name="DMY"/>
  5313.     <xsl:param name="DM"/>
  5314.     <xsl:param name="MY"/>
  5315.     <xsl:param name="DY"/>
  5316.  
  5317.     <xsl:param name="day"/>
  5318.     <xsl:param name="month"/>
  5319.     <xsl:param name="year"/>
  5320.  
  5321.     <xsl:param name="withDot"/>
  5322.  
  5323.     <xsl:variable name="format">
  5324.       <xsl:choose>
  5325.         <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) = 0 ">
  5326.         </xsl:when>
  5327.         <xsl:when test="string-length($day) = 0 and string-length($month) = 0 and string-length($year) != 0 ">
  5328.           <xsl:call-template name="templ_prop_SimpleDate_Y" />
  5329.         </xsl:when>
  5330.         <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) = 0 ">
  5331.           <xsl:call-template name="templ_prop_SimpleDate_M" />
  5332.         </xsl:when>
  5333.         <xsl:when test="string-length($day) = 0 and string-length($month) != 0 and string-length($year) != 0 ">
  5334.           <xsl:value-of select="$MY"/>
  5335.         </xsl:when>
  5336.         <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) = 0 ">
  5337.           <xsl:call-template name="templ_prop_SimpleDate_D" />
  5338.         </xsl:when>
  5339.         <xsl:when test="string-length($day) != 0 and string-length($month) = 0 and string-length($year) != 0 ">
  5340.           <xsl:value-of select="$DY"/>
  5341.         </xsl:when>
  5342.         <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) = 0 ">
  5343.           <xsl:value-of select="$DM"/>
  5344.         </xsl:when>
  5345.         <xsl:when test="string-length($day) != 0 and string-length($month) != 0 and string-length($year) != 0 ">
  5346.           <xsl:value-of select="$DMY"/>
  5347.         </xsl:when>
  5348.       </xsl:choose>
  5349.     </xsl:variable>
  5350.  
  5351.     <xsl:call-template name="StringFormatDate">
  5352.       <xsl:with-param name="format" select="$format"/>
  5353.  
  5354.       <xsl:with-param name="day" select="$day"/>
  5355.       <xsl:with-param name="month" select="$month"/>
  5356.       <xsl:with-param name="year" select="$year"/>
  5357.  
  5358.       <xsl:with-param name="withDot" select="$withDot"/>
  5359.     </xsl:call-template>
  5360.  
  5361.   </xsl:template>
  5362.  
  5363.   <xsl:template name="StringFormatName">
  5364.     <xsl:param name="format" />
  5365.     <xsl:param name="withDot" />
  5366.     <xsl:param name="upperLast"/>
  5367.  
  5368.     <xsl:variable name="prop_EndChars">
  5369.       <xsl:call-template name="templ_prop_EndChars"/>
  5370.     </xsl:variable>
  5371.  
  5372.     <xsl:choose>
  5373.       <xsl:when test="$format = ''"></xsl:when>
  5374.       <xsl:when test="substring($format, 1, 2) = '%%'">
  5375.         <xsl:text>%</xsl:text>
  5376.         <xsl:call-template name="StringFormatName">
  5377.           <xsl:with-param name="format" select="substring($format, 3)" />
  5378.           <xsl:with-param name="withDot" select="$withDot" />
  5379.           <xsl:with-param name="upperLast" select="$upperLast" />
  5380.         </xsl:call-template>
  5381.         <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  5382.           <xsl:call-template name="templ_prop_Dot"/>
  5383.         </xsl:if>
  5384.       </xsl:when>
  5385.       <xsl:when test="substring($format, 1, 1) = '%'">
  5386.         <xsl:variable name="what" select="substring($format, 2, 1)" />
  5387.  
  5388.         <xsl:choose>
  5389.           <xsl:when test="(what = 'l' or what = 'L') and upperLast = 'yes'">
  5390.             <span style='text-transform: uppercase;'>
  5391.               <xsl:call-template name="formatNameOneItem">
  5392.                 <xsl:with-param name="format" select="$what"/>
  5393.               </xsl:call-template>
  5394.             </span>
  5395.           </xsl:when>
  5396.           <xsl:otherwise>
  5397.             <xsl:call-template name="formatNameOneItem">
  5398.               <xsl:with-param name="format" select="$what"/>
  5399.             </xsl:call-template>
  5400.           </xsl:otherwise>
  5401.         </xsl:choose>
  5402.         <xsl:call-template name="StringFormatName">
  5403.           <xsl:with-param name="format" select="substring($format, 3)" />
  5404.           <xsl:with-param name="withDot" select="$withDot" />
  5405.           <xsl:with-param name="upperLast" select="$upperLast" />
  5406.         </xsl:call-template>
  5407.         <xsl:if test="string-length($format)=2 and withDot='yes'">
  5408.           <xsl:variable name="temp2">
  5409.             <xsl:call-template name="handleSpaces">
  5410.               <xsl:with-param name="field">
  5411.                 <xsl:call-template name="formatNameOneItem">
  5412.                   <xsl:with-param name="format" select="$what"/>
  5413.                 </xsl:call-template>
  5414.               </xsl:with-param>
  5415.             </xsl:call-template>
  5416.           </xsl:variable>
  5417.           <xsl:variable name="lastChar">
  5418.             <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  5419.           </xsl:variable>
  5420.           <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  5421.             <xsl:call-template name="templ_prop_Dot"/>
  5422.           </xsl:if>
  5423.         </xsl:if>
  5424.       </xsl:when>
  5425.       <xsl:otherwise>
  5426.         <xsl:value-of select="substring($format, 1, 1)" />
  5427.         <xsl:call-template name="StringFormatName">
  5428.           <xsl:with-param name="format" select="substring($format, 2)" />
  5429.           <xsl:with-param name="withDot" select="$withDot" />
  5430.           <xsl:with-param name="upperLast" select="$upperLast" />
  5431.         </xsl:call-template>
  5432.         <xsl:if test="string-length($format)=1">
  5433.           <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  5434.             <xsl:call-template name="templ_prop_Dot"/>
  5435.           </xsl:if>
  5436.         </xsl:if>
  5437.       </xsl:otherwise>
  5438.     </xsl:choose>
  5439.   </xsl:template>
  5440.  
  5441.   <xsl:template name="StringFormatDate">
  5442.     <xsl:param name="format" />
  5443.  
  5444.     <xsl:param name="day"/>
  5445.     <xsl:param name="month"/>
  5446.     <xsl:param name="year"/>
  5447.  
  5448.     <xsl:param name="withDot" />
  5449.  
  5450.     <xsl:variable name="prop_EndChars">
  5451.       <xsl:call-template name="templ_prop_EndChars"/>
  5452.     </xsl:variable>
  5453.  
  5454.     <xsl:choose>
  5455.       <xsl:when test="$format = ''"></xsl:when>
  5456.       <xsl:when test="substring($format, 1, 2) = '%%'">
  5457.         <xsl:text>%</xsl:text>
  5458.         <xsl:call-template name="StringFormatDate">
  5459.           <xsl:with-param name="format" select="substring($format, 3)" />
  5460.           <xsl:with-param name="day" select="$day"/>
  5461.           <xsl:with-param name="month" select="$month"/>
  5462.           <xsl:with-param name="year" select="$year"/>
  5463.           <xsl:with-param name="withDot" select="$withDot" />
  5464.         </xsl:call-template>
  5465.         <xsl:if test="string-length($format)=2 and withDot = 'yes' and not(contains($prop_EndChars, '%'))">
  5466.           <xsl:call-template name="templ_prop_Dot"/>
  5467.         </xsl:if>
  5468.       </xsl:when>
  5469.       <xsl:when test="substring($format, 1, 1) = '%'">
  5470.         <xsl:variable name="what" select="substring($format, 2, 1)" />
  5471.         <xsl:choose>
  5472.           <xsl:when test="$what = 'D'">
  5473.             <xsl:value-of select="$day"/>
  5474.           </xsl:when>
  5475.           <xsl:when test="$what = 'M'">
  5476.             <xsl:value-of select="$month"/>
  5477.           </xsl:when>
  5478.           <xsl:when test="$what = 'Y'">
  5479.             <xsl:value-of select="$year"/>
  5480.           </xsl:when>
  5481.         </xsl:choose>
  5482.         <xsl:call-template name="StringFormatDate">
  5483.           <xsl:with-param name="format" select="substring($format, 3)" />
  5484.           <xsl:with-param name="day" select="$day"/>
  5485.           <xsl:with-param name="month" select="$month"/>
  5486.           <xsl:with-param name="year" select="$year"/>
  5487.           <xsl:with-param name="withDot" select="$withDot" />
  5488.         </xsl:call-template>
  5489.         <xsl:if test="string-length($format)=2 and withDot='yes'">
  5490.           <xsl:variable name="temp2">
  5491.             <xsl:call-template name="handleSpaces">
  5492.               <xsl:with-param name="field">
  5493.                 <xsl:call-template name="formatNameOneItem">
  5494.                   <xsl:with-param name="format" select="$what"/>
  5495.                 </xsl:call-template>
  5496.               </xsl:with-param>
  5497.             </xsl:call-template>
  5498.           </xsl:variable>
  5499.           <xsl:variable name="lastChar">
  5500.             <xsl:value-of select="substring($temp2, string-length($temp2))"/>
  5501.           </xsl:variable>
  5502.           <xsl:if test="not(contains($prop_EndChars, $lastChar))">
  5503.             <xsl:call-template name="templ_prop_Dot"/>
  5504.           </xsl:if>
  5505.         </xsl:if>
  5506.       </xsl:when>
  5507.       <xsl:otherwise>
  5508.         <xsl:value-of select="substring($format, 1, 1)" />
  5509.         <xsl:call-template name="StringFormatDate">
  5510.           <xsl:with-param name="format" select="substring($format, 2)" />
  5511.           <xsl:with-param name="day" select="$day"/>
  5512.           <xsl:with-param name="month" select="$month"/>
  5513.           <xsl:with-param name="year" select="$year"/>
  5514.           <xsl:with-param name="withDot" select="$withDot" />
  5515.         </xsl:call-template>
  5516.         <xsl:if test="string-length($format)=1">
  5517.           <xsl:if test="withDot = 'yes' and not(contains($prop_EndChars, $format))">
  5518.             <xsl:call-template name="templ_prop_Dot"/>
  5519.           </xsl:if>
  5520.         </xsl:if>
  5521.       </xsl:otherwise>
  5522.     </xsl:choose>
  5523.   </xsl:template>
  5524.  
  5525.   <xsl:template name="formatDateCore">
  5526.     <xsl:param name="day"/>
  5527.     <xsl:param name="month"/>
  5528.     <xsl:param name="year"/>
  5529.     <xsl:param name="displayND"/>
  5530.  
  5531.     <xsl:param name="DMY"/>
  5532.     <xsl:param name="DM"/>
  5533.     <xsl:param name="MY"/>
  5534.     <xsl:param name="DY"/>
  5535.  
  5536.     <xsl:choose>
  5537.       <xsl:when test="string-length($year)=0">
  5538.         <xsl:if test="$displayND = 'yes'">
  5539.           <xsl:call-template name="templ_str_NoDateShortUnCap"/>
  5540.         </xsl:if>
  5541.       </xsl:when>
  5542.       <xsl:when test="string-length($month)=0">
  5543.         <xsl:value-of select="$year"/>
  5544.       </xsl:when>
  5545.       <xsl:otherwise>
  5546.         <xsl:call-template name="formatDateCorePrivate">
  5547.           <xsl:with-param name="day" select="$day"/>
  5548.           <xsl:with-param name="month" select="$month"/>
  5549.           <xsl:with-param name="year" select="$year"/>
  5550.  
  5551.           <xsl:with-param name="DMY" select="$DMY"/>
  5552.           <xsl:with-param name="DM" select="$DM"/>
  5553.           <xsl:with-param name="MY" select="$MY"/>
  5554.           <xsl:with-param name="DY" select="$DY"/>
  5555.         </xsl:call-template>
  5556.       </xsl:otherwise>
  5557.     </xsl:choose>
  5558.  
  5559.   </xsl:template>
  5560.  
  5561.   <xsl:template name="formatNameOneItem">
  5562.     <xsl:param name="format"/>
  5563.  
  5564.     <xsl:choose>
  5565.       <xsl:when test="$format = 'F'">
  5566.         <xsl:value-of select="b:First"/>
  5567.       </xsl:when>
  5568.       <xsl:when test="$format = 'L'">
  5569.         <xsl:value-of select="b:Last"/>
  5570.       </xsl:when>
  5571.       <xsl:when test="$format = 'M'">
  5572.         <xsl:value-of select="b:Middle"/>
  5573.       </xsl:when>
  5574.       <xsl:when test="$format = 'f'">
  5575.         <xsl:call-template name="formatNameInitial">
  5576.           <xsl:with-param name="name" select="b:First"/>
  5577.         </xsl:call-template>
  5578.       </xsl:when>
  5579.       <xsl:when test="$format = 'm'">
  5580.         <xsl:call-template name="formatNameInitial">
  5581.           <xsl:with-param name="name" select="b:Middle"/>
  5582.         </xsl:call-template>
  5583.       </xsl:when>
  5584.       <xsl:when test="$format = 'l'">
  5585.         <xsl:call-template name="formatNameInitial">
  5586.           <xsl:with-param name="name" select="b:Last"/>
  5587.         </xsl:call-template>
  5588.       </xsl:when>
  5589.     </xsl:choose>
  5590.  
  5591.   </xsl:template>
  5592.  
  5593.   <xsl:template name="formatNameInitial">
  5594.     <xsl:param name="name"/>
  5595.     <xsl:variable name="temp">
  5596.       <xsl:call-template name="handleSpaces">
  5597.         <xsl:with-param name="field" select="$name"/>
  5598.       </xsl:call-template>
  5599.     </xsl:variable>
  5600.     <xsl:variable name="prop_APA_Hyphens">
  5601.       <xsl:call-template name="templ_prop_Hyphens"/>
  5602.     </xsl:variable>
  5603.  
  5604.     <xsl:if test="string-length($temp)>0">
  5605.  
  5606.       <xsl:variable name="tempWithoutSpaces">
  5607.         <xsl:value-of select="translate($temp, '  ', '')"/>
  5608.         
  5609.       </xsl:variable>
  5610.  
  5611.       <xsl:if test="not(contains($prop_APA_Hyphens, substring($tempWithoutSpaces, 1, 1)))">
  5612.         <xsl:value-of select="substring($tempWithoutSpaces, 1, 1)"/>
  5613.         <xsl:call-template name="templ_prop_DotInitial"/>
  5614.       </xsl:if>
  5615.  
  5616.       <xsl:call-template name="handleHyphens">
  5617.         <xsl:with-param name="name" select="$tempWithoutSpaces"/>
  5618.       </xsl:call-template>
  5619.     </xsl:if>
  5620.   </xsl:template>
  5621.  
  5622.   <xsl:template name="handleHyphens">
  5623.     <xsl:param name="name"/>
  5624.  
  5625.     <xsl:variable name="prop_APA_Hyphens">
  5626.       <xsl:call-template name="templ_prop_Hyphens"/>
  5627.     </xsl:variable>
  5628.  
  5629.     <xsl:if test="string-length($name)>=2">
  5630.       <xsl:choose>
  5631.         <xsl:when test="contains($prop_APA_Hyphens, substring($name, 1, 1))">
  5632.           <xsl:value-of select="substring($name, 1, 2)"/>
  5633.           <xsl:call-template name="templ_prop_DotInitial"/>
  5634.  
  5635.           <xsl:call-template name="handleHyphens">
  5636.             <xsl:with-param name="name" select="substring($name, 3)"/>
  5637.           </xsl:call-template>
  5638.         </xsl:when>
  5639.  
  5640.         <xsl:otherwise>
  5641.           <xsl:call-template name="handleHyphens">
  5642.             <xsl:with-param name="name" select="substring($name, 2)"/>
  5643.           </xsl:call-template>
  5644.         </xsl:otherwise>
  5645.       </xsl:choose>
  5646.  
  5647.     </xsl:if>
  5648.  
  5649.   </xsl:template>
  5650.  
  5651.  
  5652. </xsl:stylesheet>